NetBSD-Users archive

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

Re: sys/types.h header file Issue

On Fri, Nov 13, 2009 at 06:00:01PM +0530, Channa wrote:
> What is the reason for including <pthread_types.h> under the macros
> or '_XOPEN_SOURCE' ?
> 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?

No, it is not.  The reason the inclusion is conditional on Posix/XOpen
version is because the types declared in pthread_types.h constitute
namespace pollution according to the older standard, which did not describe

Are you trying to build something that sets POSIX_C_SOURCE to a very small


Home | Main Index | Thread Index | Old Index