]> The Tcpdump Group git mirrors - tcpdump/commit
Include <time.h> from netdissect.h.
authorDenis Ovsienko <[email protected]>
Wed, 15 Feb 2023 09:20:02 +0000 (09:20 +0000)
committerDenis Ovsienko <[email protected]>
Wed, 15 Feb 2023 09:36:39 +0000 (09:36 +0000)
commit695ce83d0ad8eeaec1e1dec218279ac2d2168189
tree54c2ef0e71b47c6aa0530ed4489d05ccf3a536c3
parent17fb9526b1feff7875e3ec00427dfcb8096e8621
Include <time.h> from netdissect.h.

netdissect.h since commit 7578e1c requires <time.h> for struct tm.  The
dependency is difficult to notice because the warning pops up when
compiling strdup.c only and only on Linux, and Linux most certainly has
strdup(), so normally strdup.c is never compiled on Linux.  Make it
correct anyway to eliminate a space for future surprises in other files.

$ make strdup.o
In file included from ./missing/strdup.c:38:
./netdissect.h:441:38: warning: 'struct tm' declared inside parameter
  list will not be visible outside of this definition or declaration

gcc (Debian 10.2.1-6) 10.2.1 20210110
netdissect.h
print-ntp.c