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 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 refer to are properly defined. 

Solaris 2.5.1 pthread.h doesn't include <unistd.h> directly, but does
include <sys/signal.h> which includes <unistd.h>.

I think our pthread.h should include <unistd.h>, but don't know if
it should be directly included or not.

Jason, what do you think?

Dan Eischen
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to