From 5389b3714be747f1a11ac51beb0c5988cfb6c240 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 26 May 2014 23:36:58 +0200 Subject: Don't use macro _XOPEN_SOURCE for function strptime We detect all necessary feature macros in configure script using AC_USE_SYSTEM_EXTENSIONS or AC_GNU_SOURCE. This patch replaces all definitions of macro _XOPEN_SOURCE with header file config.h Reviewed-by: Jakub Hrozek --- src/db/sysdb_sudo.c | 2 +- src/providers/ldap/sdap_access.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c index 003b5709c..261ed82d6 100644 --- a/src/db/sysdb_sudo.c +++ b/src/db/sysdb_sudo.c @@ -18,7 +18,7 @@ along with this program. If not, see . */ -#define _XOPEN_SOURCE +#include "config.h" #include #include diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c index 62a087f46..f454bd2a3 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -22,9 +22,9 @@ along with this program. If not, see . */ -#define _XOPEN_SOURCE 500 /* for strptime() */ +#include "config.h" + #include -#undef _XOPEN_SOURCE #include #include #include -- cgit