diff --git a/klib/src/platform/linux/linux.def b/klib/src/platform/linux/linux.def index 3a27036cbf0..5470df67eb3 100644 --- a/klib/src/platform/linux/linux.def +++ b/klib/src/platform/linux/linux.def @@ -33,5 +33,5 @@ headers = aio.h aliases.h a.out.h argp.h argz.h byteswap.h cpio.h crypt.h \ sys/ustat.h utime.h sys/utsname.h sys/vfs.h sys/vlimit.h \ sys/vt.h sys/vtimes.h sys/xattr.h -compilerOpts = -D_GNU_SOURCE -#depends = posix \ No newline at end of file +compilerOpts = -D_ANSI_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 +depends = posix diff --git a/klib/src/platform/linux/posix.def b/klib/src/platform/linux/posix.def index ff1bd066b93..62f757664c8 100644 --- a/klib/src/platform/linux/posix.def +++ b/klib/src/platform/linux/posix.def @@ -12,7 +12,7 @@ headers = alloca.h ar.h assert.h complex.h dirent.h dlfcn.h err.h errno.h fcntl. sys/queue.h sys/select.h sys/shm.h sys/stat.h sys/socket.h \ sys/time.h sys/times.h sys/utsname.h sys/wait.h -compilerOpts = -D_ANSI_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 +compilerOpts = -D_ANSI_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D__need_error_t --- // cinterop -target linux -def klib/src/platform/linux/posix.def -o platform.posix.klib