]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Clean up includes for machdep.c.
authorGuy Harris <[email protected]>
Fri, 15 May 2020 05:34:09 +0000 (22:34 -0700)
committerGuy Harris <[email protected]>
Fri, 15 May 2020 05:34:09 +0000 (22:34 -0700)
If we're not building for Tru64 UNIX, we need only <stddef.h> to define
size_t and "varattrs.h" to define _U_.

machdep.c

index f1505fdfb04696c266e866e956c51833cd6ed035..2578b73c0cb44938c345feb9c2d8e55a77d06efc 100644 (file)
--- a/machdep.c
+++ b/machdep.c
 #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"
 
 /*