]> The Tcpdump Group git mirrors - tcpdump/blobdiff - netdissect.h
Do not substitute strdup().
[tcpdump] / netdissect.h
index d953a464ea112172acfb5472d8763ed1380f6eec..b744fe87677c3b9d883c89c56a8a5a83eab67afe 100644 (file)
@@ -30,6 +30,7 @@
 #endif
 #include <sys/types.h>
 #include <setjmp.h>
+#include <time.h>
 #include "status-exit-codes.h"
 #include "funcattrs.h" /* for PRINTFLIKE_FUNCPTR() */
 #include "diag-control.h" /* for ND_UNREACHABLE */
@@ -129,10 +130,6 @@ extern size_t strlcat (char *, const char *, size_t);
 extern size_t strlcpy (char *, const char *, size_t);
 #endif
 
-#ifndef HAVE_STRDUP
-extern char *strdup (const char *str);
-#endif
-
 #ifndef HAVE_STRSEP
 extern char *strsep(char **, const char *);
 #endif