Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/sys



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



Home | Main Index | Thread Index | Old Index