From: Guy Harris Date: Fri, 15 May 2020 05:34:09 +0000 (-0700) Subject: Clean up includes for machdep.c. X-Git-Tag: tcpdump-4.99-bp~400 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/c0392372cf0612f53716c7daf5a9ae00ce3234fe Clean up includes for machdep.c. If we're not building for Tru64 UNIX, we need only to define size_t and "varattrs.h" to define _U_. --- diff --git a/machdep.c b/machdep.c index f1505fdf..2578b73c 100644 --- a/machdep.c +++ b/machdep.c @@ -23,13 +23,7 @@ #include #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 #ifdef __osf__ #include @@ -37,6 +31,7 @@ #include #endif /* __osf__ */ +#include "varattrs.h" #include "machdep.h" /*