Re: pthread.h and unistd.h

2000-02-17 Thread Daniel Eischen
On Thu, 17 Feb 2000, Thimble Smith wrote: Hi. I recently updated from -stable to -current. I notice now that pthread.h relies on #defines that are in unistd.h; so in order to use pthread_attr_setscope you have to include unistd.h before pthread.h. Is this standard behaviour? I'm working

pthread.h and unistd.h

2000-02-17 Thread Thimble Smith
Hi. I recently updated from -stable to -current. I notice now that pthread.h relies on #defines that are in unistd.h; so in order to use pthread_attr_setscope you have to include unistd.h before pthread.h. Is this standard behaviour? I'm working with MySQL, and unistd.h is included after

Re: pthread.h and unistd.h

2000-02-17 Thread Bruce Evans
pthread.h. Is this standard behaviour? I'm working with MySQL, and unistd.h is included after pthread.h; should I have that code changed, or should FreeBSD somehow compensate for this? I've read the POSIX spec, and it looks like pthread.h should include unistd.h so that the #defines you

Re: pthread.h and unistd.h

2000-02-17 Thread Daniel Eischen
pthread_attr_setscope you have to include unistd.h before pthread.h. Is this standard behaviour? I'm working with MySQL, and unistd.h is included after pthread.h; should I have that code changed, or should FreeBSD somehow compensate for this? I've read the POSIX spec, and it looks like pthread.h

Re: pthread.h and unistd.h

2000-02-17 Thread Bruce Evans
On Thu, 17 Feb 2000, Daniel Eischen wrote: How about we remove the #if defined()s for: _POSIX_THREAD_PROCESS_SHARED _POSIX_THREAD_PRIO_PROTECT _POSIX_THREAD_PRIO_INHERIT _POSIX_THREAD_PRIORITY_SCHEDULING from our pthread.h? Except for the first, which is left undefined in

Re: pthread.h and unistd.h

2000-02-17 Thread Jason Evans
On Thu, Feb 17, 2000 at 11:29:57AM -0500, Daniel Eischen wrote: How about we remove the #if defined()s for: _POSIX_THREAD_PROCESS_SHARED _POSIX_THREAD_PRIO_PROTECT _POSIX_THREAD_PRIO_INHERIT _POSIX_THREAD_PRIORITY_SCHEDULING from our pthread.h? Yes, it looks like use of the