fix the manual config and flipped condition in SpinLock.h
authorRanjeeth Dasineni <ranjeeth@fb.com>
Thu, 15 Jan 2015 01:06:40 +0000 (17:06 -0800)
committerwoo <woo@fb.com>
Mon, 2 Feb 2015 21:10:45 +0000 (13:10 -0800)
commite300e8b640a048f128c9a60a8df101b30a57256a
tree7761b945021a99b401c10a64b8c287b705903e7a
parent6214f971e82863efe7c72229dde0c84fc0594dd0
fix the manual config and flipped condition in SpinLock.h

Summary:
i) FOLLY_HAVE_INT128_T definition is duplicated and is getting set to 1 on android. deleted that.
ii) we dont have pthread_spinlock_t and pthread_atfork on android, the former is absent apple as well
iii) a condition got flipped in D1768669. __ANDROID__ implies !FOLLY_HAVE_PTHREAD_SPINLOCK_T. fixed that

Test Plan:
- fbconfig -r folly && fbmake
- ran folly build with buck as well
- synced to fb4a and it builds

Reviewed By: seanc@fb.com

Subscribers: doug, seanc, folly-diffs@

FB internal diff: D1783579

Signature: t1:1783579:1421350138:9301303f77784e7bdb851e3f643751078457b025
folly/SpinLock.h