aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-16 19:13:09 +0000
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-16 19:13:09 +0000
commite88dc5f77c2bb80037aaa39809d3138fb5774776 (patch)
tree9eaecc5027985a819a4ff4e87ad2d638c2a971d2 /editcap.c
parent275d5e51f3b2f50e495c8fa3e6b6e627b354170d (diff)
From Sebastien Tandeil:
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
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/editcap.c b/editcap.c
index 3188c31757..58e33e9db8 100644
--- a/editcap.c
+++ b/editcap.c
@@ -15,6 +15,14 @@
#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
@@ -22,13 +30,7 @@
#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