summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-08-21 14:24:48 +0200
committerJo-Philipp Wich <jo@mein.io>2018-08-21 14:36:39 +0200
commit952bf9d754d021ee9c08f9add5c9af53aaaf39ae (patch)
tree59ce2155d157266b5ea05a052e820d54f60d3e80
parent30a18cb4bfd8c9997e40d9cd9c8562a751d61ecf (diff)
build: use _DEFAULT_SOURCE
Add _DEFAULT_SOURCE FTM in order to avoid warnings with recent glibc. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--file.c1
-rw-r--r--main.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index 8ccf982..2f829f1 100644
--- a/file.c
+++ b/file.c
@@ -17,6 +17,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE
#define _DARWIN_C_SOURCE
#define _XOPEN_SOURCE 700
diff --git a/main.c b/main.c
index fb27665..11b33ff 100644
--- a/main.c
+++ b/main.c
@@ -17,6 +17,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE
#define _GNU_SOURCE
#define _XOPEN_SOURCE 700