[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tru64 table.h #defines `sys'
From: |
Ralf Wildenhues |
Subject: |
Tru64 table.h #defines `sys' |
Date: |
Mon, 22 Oct 2007 22:22:18 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello Jim, all,
On Tru64 4.0D (and 5.1), sys/table.h defines sys:
/usr/include/sys/table.h:#define sys si_sys
which make me wonder what the system developers were thinking there:
| cc -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC -DEXEEXT=\"\" -I.
-I.. -I../../dummy-0/gllib -I../intl -ieee -g -c -o getloadavg.o
../../dummy-0/gllib/getloadavg.c
| cc: Severe: ./sys/stat.h, line 28: Cannot find file <si_sys/stat.h> specified
in #include directive. (noinclfilef)
| #include_next <sys/stat.h>
| -^
| gmake[3]: *** [getloadavg.o] Error 1
I could work around that with the patch below. WDYT?
Cheers,
Ralf
2007-10-22 Ralf Wildenhues <address@hidden>
* lib/getloadavg.c
[defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
Undef `sys' after including sys/table.h, for Tru64 4.0D.
diff --git a/lib/getloadavg.c b/lib/getloadavg.c
index ac6cd0f..7b38eef 100644
--- a/lib/getloadavg.c
+++ b/lib/getloadavg.c
@@ -186,6 +186,8 @@
# include <sys/socket.h>
# include <net/route.h>
# include <sys/table.h>
+/* Tru64 4.0D's table.h redefines sys */
+# undef sys
# endif
# if defined (__osf__) && (defined (mips) || defined (__mips__))
- Tru64 table.h #defines `sys',
Ralf Wildenhues <=