Should sys/types.h include sys/sysmacros.h?

Christopher Faylor
Wed May 1 07:57:00 GMT 2002

On Wed, May 01, 2002 at 08:56:00AM -0400, Jason Tishler wrote:
>In the process of trying to build the latest Python CVS, I get a link
>error due to the following line:
>    res = mknod(filename, mode, makedev(major, minor));
>After building successfully under Linux, I determined that the above
>works because Linux's sys/types.h includes sys/sysmacros.h.
>Should newlib's sys/types.h include sys/sysmacros.h (possibly only for
>I tried searching:
>but came up empty.

If it makes things more linux compliant and there is no corresponding
susv2 ruling, then go for it.  Could you send a patch to the newlib mailing
list?  If it's conditionalized for cygwin, I can approve it.


More information about the Cygwin-developers mailing list