aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-12-27 02:03:26 +0000
committerJoão Valverde <j@v6e.pt>2021-12-27 14:07:32 +0000
commit0d5bfd44a87e4648cd159e56f4b8ca7cd8d73b57 (patch)
tree0399367c67c75d621420715bbf6f5046572511ff /editcap.c
parentb83cefd2fe9bfaad04542c14cbf8b1e2c6ed5454 (diff)
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.
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/editcap.c b/editcap.c
index 591af0a1ce..5704e4f975 100644
--- a/editcap.c
+++ b/editcap.c
@@ -23,16 +23,6 @@
#include <stdarg.h>
#include <math.h>
-/*
- * 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 <time.h>
#include <glib.h>
@@ -53,10 +43,6 @@
#include <winsock2.h>
#endif
-#ifndef HAVE_STRPTIME
-# include "wsutil/strptime.h"
-#endif
-
#include <ui/clopts_common.h>
#include <ui/cmdarg_err.h>
#include <ui/exit_codes.h>