From 0d5bfd44a87e4648cd159e56f4b8ca7cd8d73b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Mon, 27 Dec 2021 02:03:26 +0000 Subject: Use a wrapper function to call strptime() Encapsulate the feature requirements for strptime() in a portability wrapper. Use _GNU_SOURCE to expose strptime. It should be enough on glibc without the side-effect of selecting a particular SUS version, which we don't need and might hide other definitions. --- editcap.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'editcap.c') diff --git a/editcap.c b/editcap.c index 591af0a1ce..5704e4f975 100644 --- a/editcap.c +++ b/editcap.c @@ -23,16 +23,6 @@ #include #include -/* - * Just make sure we include the prototype for strptime as well - * (needed for glibc 2.2) but make sure we do this only if not - * yet defined. - */ - -#ifndef __USE_XOPEN -# define __USE_XOPEN -#endif - #include #include @@ -53,10 +43,6 @@ #include #endif -#ifndef HAVE_STRPTIME -# include "wsutil/strptime.h" -#endif - #include #include #include -- cgit v1.2.3