From Sebastien Tandeil:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 16 Jan 2007 19:13:09 +0000 (19:13 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 16 Jan 2007 19:13:09 +0000 (19:13 +0000)
a patch to avoid the warning "implicit declaration of function
'strptime'" in editcap.c
glib.h is included just after the define __USE_XOPEN and include <time.h>

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20455 f5534014-38df-0310-8fa8-9805f1628bb7

editcap.c

index 3188c317574e071f0bd92c350469dd9a6c07d69e..58e33e9db8d8e3c8f91c95401f7e95765ec25f15 100644 (file)
--- a/editcap.c
+++ b/editcap.c
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+
+/*
+ * Just make sure we include the prototype for strptime as well
+ * (needed for glibc 2.2)
+ */
+
+#define __USE_XOPEN
+#include <time.h>
 #include <glib.h>
 
 #ifdef HAVE_UNISTD_H
 #endif
 
 
-/*
- * Just make sure we include the prototype for strptime as well
- * (needed for glibc 2.2)
- */
-#define __USE_XOPEN
 
-#include <time.h>
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif