On Wed, Dec 25, 2002 at 04:50:44PM -0500, Craig Rodrigues wrote:
> Hi,
> 
> I was looking at <pthread.h> and thought that this patch should be
> applied since _POSIX_THREAD_PROCESS_SHARED is defined as -1 in <unistd.h>.
> 
> Is it OK?

I missed one macro, here is an updated patch.
 
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
[EMAIL PROTECTED]
Index: pthread.h
===================================================================
RCS file: /home/ncvs/src/include/pthread.h,v
retrieving revision 1.25
diff -u -r1.25 pthread.h
--- pthread.h   2002/03/23 17:24:53     1.25
+++ pthread.h   2002/12/25 22:13:06
@@ -204,7 +204,7 @@
 int            pthread_condattr_destroy(pthread_condattr_t *);
 int            pthread_condattr_init(pthread_condattr_t *);
 
-#if defined(_POSIX_THREAD_PROCESS_SHARED)
+#if defined(_POSIX_THREAD_PROCESS_SHARED) && _POSIX_THREAD_PROCESS_SHARED != -1
 int            pthread_condattr_getpshared(pthread_condattr_t *, int *);
 int            pthread_condattr_setpshared(pthread_condattr_t *, int);
 #endif
@@ -265,7 +265,7 @@
 int            pthread_setprio(pthread_t, int);
 void           pthread_yield(void);
 
-#if defined(_POSIX_THREAD_PROCESS_SHARED)
+#if defined(_POSIX_THREAD_PROCESS_SHARED) && _POSIX_THREAD_PROCESS_SHARED != -1
 int            pthread_mutexattr_getpshared(pthread_mutexattr_t *,
                        int *pshared);
 int            pthread_mutexattr_setpshared(pthread_mutexattr_t *,

Reply via email to