If _POSIX_SPIN_LOCKS is defined as -1, it is not available

This commit is contained in:
Martin Willi
2012-08-10 17:02:46 +02:00
parent 922fb29f89
commit a63192479d
+4
View File
@@ -23,6 +23,10 @@
#include "mutex.h"
#include "lock_profiler.h"
#if defined(_POSIX_SPIN_LOCKS) && _POSIX_SPIN_LOCKS == -1
#undef _POSIX_SPIN_LOCKS
#endif
typedef struct private_spinlock_t private_spinlock_t;
/**