From owner-freebsd-current Thu Feb 17 4: 2:54 2000 Delivered-To: freebsd-current@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 9067937B6B0; Thu, 17 Feb 2000 04:02:51 -0800 (PST) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id HAA24651; Thu, 17 Feb 2000 07:02:40 -0500 (EST) Date: Thu, 17 Feb 2000 07:02:39 -0500 (EST) From: Daniel Eischen To: Thimble Smith Cc: current@FreeBSD.ORG, jasone@FreeBSD.ORG Subject: Re: pthread.h and unistd.h In-Reply-To: <20000217045227.S2611@threads.polyesthetic.msg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 directly, but does include which includes . I think our pthread.h should include , but don't know if it should be directly included or not. Jason, what do you think? Dan Eischen eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message