summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-05-26 23:36:58 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-06-18 15:02:37 +0200
commitaa5cfe710bb22c1c9d380189b902d46411be113d (patch)
treebb22f8613467c006b67ceb03c48ab77e7a11dfbc
parent7e277b03e77d8e44e6da17d1ccd50eaf8f85f4ca (diff)
downloadsssd-aa5cfe710bb22c1c9d380189b902d46411be113d.tar.gz
sssd-aa5cfe710bb22c1c9d380189b902d46411be113d.tar.xz
sssd-aa5cfe710bb22c1c9d380189b902d46411be113d.zip
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 <jhrozek@redhat.com> (cherry picked from commit 5389b3714be747f1a11ac51beb0c5988cfb6c240)
-rw-r--r--src/db/sysdb_sudo.c2
-rw-r--r--src/providers/ldap/sdap_access.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c
index 6e8e78e37..55bf2c97e 100644
--- a/src/db/sysdb_sudo.c
+++ b/src/db/sysdb_sudo.c
@@ -18,7 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _XOPEN_SOURCE
+#include "config.h"
#include <talloc.h>
#include <time.h>
diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c
index 486a08c85..3a25a9265 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 <http://www.gnu.org/licenses/>.
*/
-#define _XOPEN_SOURCE 500 /* for strptime() */
+#include "config.h"
+
#include <time.h>
-#undef _XOPEN_SOURCE
#include <sys/param.h>
#include <security/pam_modules.h>
#include <talloc.h>