Fix Linux platform dependencies
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user