summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-05-26 23:36:58 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-27 21:40:03 +0200
commit5389b3714be747f1a11ac51beb0c5988cfb6c240 (patch)
tree0649aa08819c083824b73403e263cbcce42f7262 /src
parent01f0d708fddfd50bdbb36a63737dcdc2c2fbd28d (diff)
downloadsssd-5389b3714be747f1a11ac51beb0c5988cfb6c240.tar.gz
sssd-5389b3714be747f1a11ac51beb0c5988cfb6c240.tar.xz
sssd-5389b3714be747f1a11ac51beb0c5988cfb6c240.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>
Diffstat (limited to 'src')
-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>