aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindfs.c
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2015-11-15 21:06:17 +0000
committerMartin Pärtel <martin.partel@gmail.com>2015-11-15 21:06:17 +0000
commit9565d19ba2469159ca0979fce967dc8852252108 (patch)
treee8479628405616183393bf745c0cf544aa576c8b /src/bindfs.c
parentfd6663ef973e708d6f59a757902413f9c257cefc (diff)
downloadbindfs-9565d19ba2469159ca0979fce967dc8852252108.tar.gz
Define _DEFAULT_SOURCE when defining _BSD_SOURCE.
_BSD_SOURCE has been deprecated in favor of _DEFAULT_SOURCE but both can remain defined for backwards-compatibility.
Diffstat (limited to 'src/bindfs.c')
-rw-r--r--src/bindfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bindfs.c b/src/bindfs.c
index 22517ad..0aa0a51 100644
--- a/src/bindfs.c
+++ b/src/bindfs.c
@@ -36,6 +36,8 @@
/* For stat() nanosecond precision and lutimes() */
#define _BSD_SOURCE
+/* The new non-deprecated version of _BSD_SOURCE */
+#define _DEFAULT_SOURCE
#include <stdlib.h>
#include <stddef.h>