X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/b061a43bf32824cb214e9e3a29a974341de443d4..a9aaacca3a68bb8d74fec09d8d8681a0efda2581:/include/unistd.h diff --git a/include/unistd.h b/include/unistd.h index 7896f8d..01b7166 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -164,7 +164,12 @@ #endif /* __DARWIN_C_LEVEL */ #define __ILP32_OFF32 (-1) +#ifdef UNIFDEF_POSIX_ILP32_ALLOW #define __ILP32_OFFBIG (1) +#else // UNIFDEF_POSIX_ILP32_ALLOW +#define __ILP32_OFFBIG (-1) +#endif // UNIFDEF_POSIX_ILP32_ALLOW + #define __LP64_OFF64 (1) #define __LPBIG_OFFBIG (1) @@ -586,6 +591,7 @@ __END_DECLS */ #if __DARWIN_C_LEVEL >= 199506L +#include <_ctermid.h> /* These F_* are really XSI or Issue 6 */ #define F_ULOCK 0 /* unlock locked section */ #define F_LOCK 1 /* lock a section for exclusive use */ @@ -605,11 +611,6 @@ int chroot(const char *) __POSIX_C_DEPRECATED(199506L); #endif char *crypt(const char *, const char *); -#ifndef __CTERMID_DEFINED -/* Multiply defined in stdio.h and unistd.h by SUS */ -#define __CTERMID_DEFINED 1 -char *ctermid(char *); -#endif #if __DARWIN_UNIX03 //Begin-Libc #ifndef LIBC_ALIAS_ENCRYPT