If _POSIX_SPIN_LOCKS is defined as -1, it is not available
This commit is contained in:
@@ -23,6 +23,10 @@
|
|||||||
#include "mutex.h"
|
#include "mutex.h"
|
||||||
#include "lock_profiler.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;
|
typedef struct private_spinlock_t private_spinlock_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user