summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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 <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 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 <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>