diff options
author | Guy Harris <guy@alum.mit.edu> | 2020-05-14 22:34:09 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2020-05-14 22:34:09 -0700 |
commit | c0392372cf0612f53716c7daf5a9ae00ce3234fe (patch) | |
tree | e7a326c31c46beb11327c96e06eb5cdb1583cb03 | |
parent | a37ced67021c5f4afb14cfc26dd5fee115c78d33 (diff) | |
download | tcpdump-c0392372cf0612f53716c7daf5a9ae00ce3234fe.tar.gz |
Clean up includes for machdep.c.
If we're not building for Tru64 UNIX, we need only <stddef.h> to define
size_t and "varattrs.h" to define _U_.
-rw-r--r-- | machdep.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -23,13 +23,7 @@ #include <config.h> #endif -/* - * XXX - all we need, on platforms other than DEC OSF/1 (a/k/a Digital UNIX, - * a/k/a Tru64 UNIX), is "size_t", which is a standard C type; what do we - * need to do to get it defined? This is clearly wrong, as we shouldn't - * have to include UNIX or Windows system header files to get it. - */ -#include "netdissect-stdinc.h" +#include <stddef.h> #ifdef __osf__ #include <stdio.h> @@ -37,6 +31,7 @@ #include <sys/proc.h> #endif /* __osf__ */ +#include "varattrs.h" #include "machdep.h" /* |