]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Protect includes of <time.h> with "#ifdef TIME_WITH_SYS_TIME".
authorguy <guy>
Sat, 20 Apr 2002 09:42:57 +0000 (09:42 +0000)
committerguy <guy>
Sat, 20 Apr 2002 09:42:57 +0000 (09:42 +0000)
print-rx.c
smbutil.c

index 34fa304f55fc43efa95b9b0713fa8b8701b60e52..11adfecc2cbed81af07c8593a09a82d588045586 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-rx.c,v 1.27 2001-10-20 07:41:55 itojun Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-rx.c,v 1.28 2002-04-20 09:42:57 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -44,7 +44,9 @@ static const char rcsid[] =
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef TIME_WITH_SYS_TIME
 #include <time.h>
+#endif
 #include <sys/param.h>
 #include <sys/time.h>
 #include <sys/types.h>
index c34fbacf256b75f360484b285b5461c6f6c4d38c..505a271d9363f5de660a212b714789c7e12bf743 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -12,7 +12,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.18 2002-01-17 04:38:29 guy Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.19 2002-04-20 09:42:58 guy Exp $";
 #endif
 
 #include <sys/param.h>
@@ -26,7 +26,9 @@ static const char rcsid[] =
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef TIME_WITH_SYS_TIME
 #include <time.h>
+#endif
 
 #include "interface.h"
 #include "extract.h"