Message243404
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. |
|
Date |
User |
Action |
Args |
2015-05-17 15:20:16 | Jeffrey.Armstrong | set | recipients:
+ Jeffrey.Armstrong |
2015-05-17 15:20:16 | Jeffrey.Armstrong | set | messageid: <1431876016.63.0.693162312632.issue24217@psf.upfronthosting.co.za> |
2015-05-17 15:20:16 | Jeffrey.Armstrong | link | issue24217 messages |
2015-05-17 15:20:16 | Jeffrey.Armstrong | create | |
|