Differences From Artifact [892d1c3341]:
- File src/unistd_wrapper.h — part of check-in [ad2c53e367] at 2017-05-28 15:23:28 on branch trunk — MorphOS: Do not include unistd.h when using libnix (user: js, size: 931) [annotate] [blame] [check-ins using]
To Artifact [33a8d48723]:
- File
src/unistd_wrapper.h
— part of check-in
[cb450cb1bd]
at
2017-06-03 15:03:27
on branch trunk
— Include unistd.h on MorphOS + libnix
It turns out that including unistd.h does work when defining BOOL to
something else. (user: js, size: 1000) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
15 16 17 18 19 20 21 | #include "config.h" #include <stdlib.h> /* Make sure we have any libc include */ #import "platform.h" | > > > > > > | | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #include "config.h" #include <stdlib.h> /* Make sure we have any libc include */ #import "platform.h" #if defined(OF_MORPHOS) && !defined(OF_IXEMUL) # define BOOL EXEC_BOOL # include <exec/types.h> # undef BOOL #endif #if defined(HAVE_UNISTD_H) # ifdef __GLIBC__ # undef __USE_XOPEN /* Needed to avoid old glibc using __block */ # endif # include <unistd.h> # ifdef __GLIBC__ # define __USE_XOPEN 1 # endif #endif |