Subject: Re: CVS commit: src/sys/sys
To: Nathan J Williams <nathanw@NetBSD.org>
From: Thomas Klausner <wiz@netbsd.org>
List: source-changes
Date: 07/18/2003 18:13:46
On Fri, Jul 18, 2003 at 04:09:34PM +0000, Nathan J Williams wrote:
> Modified Files:
> src/sys/sys: types.h
>
> Log Message:
> Add the feature-test wrapping to the inclusion of <pthread_types.h> (I
> *swear* I remembered committing this yesterday.....)
Shouldn't this match what's in signal.h:
#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
defined(_NETBSD_SOURCE)
int kill __P((pid_t, int));
int pthread_sigmask __P((int, const sigset_t *, sigset_t *));
int pthread_kill __P((pthread_t, int));
Otherwise for _POSIX_SOURCE < 200111L and _XOPEN_SOURCE < 600,
pthread_t will not be defined and signal.h unusable...
Thomas