From: jake Date: Tue, 16 Jan 2007 19:13:09 +0000 (+0000) Subject: From Sebastien Tandeil: X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=e88dc5f77c2bb80037aaa39809d3138fb5774776 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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20455 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/editcap.c b/editcap.c index 3188c31757..58e33e9db8 100644 --- a/editcap.c +++ b/editcap.c @@ -15,6 +15,14 @@ #include #include #include + +/* + * Just make sure we include the prototype for strptime as well + * (needed for glibc 2.2) + */ + +#define __USE_XOPEN +#include #include #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 #ifdef HAVE_SYS_TIME_H #include #endif