This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jeffrey.Armstrong
Recipients Jeffrey.Armstrong
Date 2015-05-17.15:20:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431876016.63.0.693162312632.issue24217@psf.upfronthosting.co.za>
In-reply-to
Content
While compiling on Linux/x86 with Open Watcom, I've run into the following at link time in Modules/mmapmodule.c:

./Modules/mmapmodule.c(1223): Error! E1011: Symbol 'O_RDWR' has not been declared

The constant isn't defined because fcntl.h isn't included.  Looking at the top of the file, it appears that, for the Apple platform only, this header is included, but no others.

In order to support more runtime libraries outside of GNU libc, I would suggest including fcntl.h for all UNIX-y platforms, especially because the POSIX standard dictates that this constant be defined in fcntl.h.  I don't know how it finds its way in under GCC/GNU libc, but an explicit include might be better.
History
Date User Action Args
2015-05-17 15:20:16Jeffrey.Armstrongsetrecipients: + Jeffrey.Armstrong
2015-05-17 15:20:16Jeffrey.Armstrongsetmessageid: <1431876016.63.0.693162312632.issue24217@psf.upfronthosting.co.za>
2015-05-17 15:20:16Jeffrey.Armstronglinkissue24217 messages
2015-05-17 15:20:16Jeffrey.Armstrongcreate