Fix Linux platform dependencies

This commit is contained in:
Nikolay Igotti
2017-10-11 18:17:08 +03:00
parent 2445357166
commit e714b4e134
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
compilerOpts = -D_ANSI_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
depends = posix
+1 -1
View File
@@ -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