From ea8fe575cd61bea204454c5410435d4d9bf3c124 Mon Sep 17 00:00:00 2001 From: David Xu Date: Fri, 2 Dec 2005 02:36:13 +0000 Subject: [PATCH] barrier and spin_lock had already been implemented in libpthread and libthr for a long time, set both _POSIX_BARRIERS and _POSIX_SPIN_LOCKS to 200112L. --- include/unistd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index 9bc7af71e27f..1568e06851e0 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -103,12 +103,12 @@ typedef __useconds_t useconds_t; * the POSIX standard; however, if the relevant sysconf() function * returns -1, the functions may be stubbed out. */ -#define _POSIX_BARRIERS -1 +#define _POSIX_BARRIERS 200112L #define _POSIX_READER_WRITER_LOCKS 200112L #define _POSIX_REGEXP 1 #define _POSIX_SHELL 1 #define _POSIX_SPAWN -1 -#define _POSIX_SPIN_LOCKS -1 +#define _POSIX_SPIN_LOCKS 200112L #define _POSIX_THREAD_ATTR_STACKADDR 200112L #define _POSIX_THREAD_ATTR_STACKSIZE 200112L #define _POSIX_THREAD_CPUTIME -1