summaryrefslogtreecommitdiff
path: root/machdep.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2020-05-14 22:34:09 -0700
committerGuy Harris <guy@alum.mit.edu>2020-05-14 22:34:09 -0700
commitc0392372cf0612f53716c7daf5a9ae00ce3234fe (patch)
treee7a326c31c46beb11327c96e06eb5cdb1583cb03 /machdep.c
parenta37ced67021c5f4afb14cfc26dd5fee115c78d33 (diff)
downloadtcpdump-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_.
Diffstat (limited to 'machdep.c')
-rw-r--r--machdep.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/machdep.c b/machdep.c
index f1505fdf..2578b73c 100644
--- a/machdep.c
+++ b/machdep.c
@@ -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"
/*