NetBSD-Users archive

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

sys/types.h header file Issue


I am using NetBSD sources have some doubt with respect to the
 <pthread_types.h> inclusion in <sys/types.h> header file.

The header file <pthread_types.h> is included as below:

$ cat src/sys/sys/types.h
#if (_POSIX_C_SOURCE - 0L) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \
#include <pthread_types.h>

What is the reason for including <pthread_types.h> under the macros

Since the IEEE specification for <sys/types.h> below does not mention
such a rule

Is it ok to move the inclusion of <pthread_types.h> outside these macros?

Thanks & Regards,

Home | Main Index | Thread Index | Old Index