summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@gmail.com>2016-02-06 00:05:12 +0100
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>2016-02-06 00:05:12 +0100
commit9f1643faccda23f0070f0415569395a776055a04 (patch)
tree2e37729a1b5548553f8da0efbbce5a2d32061bf2 /src
parentb390d44bf2573d7bc0b97f19db7969bb2a26aa55 (diff)
Define also _DEFAULT_SOURCE where _BSD_SOURCE is already defined.
It's required to avoid getting warnings w/ glibc >= 2.20.
Diffstat (limited to 'src')
-rw-r--r--src/metastore.c1
-rw-r--r--src/utils.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/metastore.c b/src/metastore.c
index 56fc655..579f892 100644
--- a/src/metastore.c
+++ b/src/metastore.c
@@ -18,6 +18,7 @@
*/
#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <getopt.h>
diff --git a/src/utils.c b/src/utils.c
index b0d291a..ae55e49 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -18,6 +18,7 @@
*/
#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>