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
> '_POSIX_C_SOURCE'
> or '_XOPEN_SOURCE' ?
>
> Since the IEEE specification for <sys/types.h> below does not mention
> such a rule
>
> http://www.opengroup.org/onlinepubs/000095399/basedefs/sys/types.h.html#tag_13_67
>
> 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
them.
Are you trying to build something that sets POSIX_C_SOURCE to a very small
value?
Thor
Home |
Main Index |
Thread Index |
Old Index