From 8191c2147b83ebefd9f45be43d53db7d7fc14dc5 Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 25 Nov 2018 12:12:48 +0100 Subject: [PATCH] Replace _XOPEN_SOURCE with _POSIX_C_SOURCE And make sure we don't define both in the same source file. --- main.c | 3 +-- pam.c | 2 +- password.c | 1 - render.c | 1 - shadow.c | 2 +- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index 9b74b67..50f145e 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,4 @@ -#define _XOPEN_SOURCE 700 -#define _POSIX_C_SOURCE 200112L +#define _POSIX_C_SOURCE 200809L #include #include #include diff --git a/pam.c b/pam.c index cac95a8..b90d9e8 100644 --- a/pam.c +++ b/pam.c @@ -1,4 +1,4 @@ -#define _XOPEN_SOURCE 500 +#define _POSIX_C_SOURCE 200809L #include #include #include diff --git a/password.c b/password.c index 6138e1f..db8ecae 100644 --- a/password.c +++ b/password.c @@ -1,4 +1,3 @@ -#define _XOPEN_SOURCE 500 #include #include #include diff --git a/render.c b/render.c index fa8832b..cbd5d01 100644 --- a/render.c +++ b/render.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 199506L #include #include #include diff --git a/shadow.c b/shadow.c index f928eaa..b7b10a6 100644 --- a/shadow.c +++ b/shadow.c @@ -1,4 +1,4 @@ -#define _XOPEN_SOURCE +#define _XOPEN_SOURCE // for crypt #include #include #include