aboutsummaryrefslogtreecommitdiff
path: root/include/lib9.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-25 02:11:11 +0000
committerrsc <devnull@localhost>2003-11-25 02:11:11 +0000
commit64bcfff3a12695f4e3f54b0590e896611da71c3b (patch)
tree4069bf27ba50ec5fa81e1ca201fc38cf3cb496be /include/lib9.h
parentf7012583e9a7594cbb5ebe8e974bb69061189262 (diff)
downloadplan9port-64bcfff3a12695f4e3f54b0590e896611da71c3b.tar.gz
plan9port-64bcfff3a12695f4e3f54b0590e896611da71c3b.tar.bz2
plan9port-64bcfff3a12695f4e3f54b0590e896611da71c3b.zip
More tweaks on Linux and Solaris.
Diffstat (limited to 'include/lib9.h')
-rw-r--r--include/lib9.h26
1 files changed, 6 insertions, 20 deletions
diff --git a/include/lib9.h b/include/lib9.h
index 21490e65..ce5187cd 100644
--- a/include/lib9.h
+++ b/include/lib9.h
@@ -15,6 +15,7 @@ extern "C" {
#define _XOPEN_SOURCE_EXTENDED 1
#define _LARGEFILE64_SOURCE 1
#define _FILE_OFFSET_BITS 64
+#define __EXTENSIONS__ 1 /* SunOS */
#include <unistd.h>
#include <string.h>
@@ -36,14 +37,6 @@ extern "C" {
#define _NEEDUINT 1
#define _NEEDULONG 1
-/* better to assume we have these and then be proved wrong */
-#define _HAVESTGEN 1
-#define _HAVETIMEGM 1
-#define _HAVETMZONE 1
-#define _HAVETMTZOFF 1
-#define _HAVEFUTIMESAT 1
-#define _HAVEFUTIMES 1
-
typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
#if defined(__linux__)
@@ -53,22 +46,12 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
# undef _NEEDUINT
# undef _NEEDULONG
# endif
-# undef _HAVESTGEN
-# undef _HAVETMZONE
-# undef _HAVETMTZOFF
-# undef _HAVEFUTIMESAT
#endif
#if defined(__sun__)
# include <sys/types.h>
# undef _NEEDUSHORT
# undef _NEEDUINT
# undef _NEEDULONG
-# undef _HAVESTGEN
-# undef _HAVETIMEGM
-# undef _HAVETMZONE
-# undef _HAVETMTZOFF
-# undef _HAVEFUTIMES
-# undef _HAVEUTIMES
#endif
#if defined(__FreeBSD__)
# include <sys/types.h>
@@ -76,14 +59,12 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
# undef _NEEDUSHORT
# undef _NEEDUINT
# endif
-# define _HAVEDISKLABEL 1
#endif
#if defined(__APPLE__)
# include <sys/types.h>
# undef _NEEDUSHORT
# undef _NEEDUINT
# define _NEEDLL 1
-# define _GETDIRENTRIES_TAKES_LONG 1
#endif
typedef signed char schar;
@@ -106,6 +87,11 @@ typedef uvlong u64int;
typedef uchar u8int;
typedef ushort u16int;
+#undef _NEEDUCHAR
+#undef _NEEDUSHORT
+#undef _NEEDUINT
+#undef _NEEDULONG
+
/*
* Begin usual libc.h
*/