summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-08-23 09:36:06 +0200
committerJo-Philipp Wich <jo@mein.io>2018-08-23 09:36:06 +0200
commit77b774b30f9125e77137c57a2ff86de57361d947 (patch)
treeb5db04be0f8e4f073667904f22ab29f840ab83a5 /file.c
parentb741dec35698a80266fb8206970638e666774a33 (diff)
build: avoid redefining _DEFAULT_SOURCE
Work around further glibc toolchain annoyances. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/file.c b/file.c
index 2f829f1..b73fd47 100644
--- a/file.c
+++ b/file.c
@@ -17,7 +17,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define _DEFAULT_SOURCE
+#ifndef _DEFAULT_SOURCE
+# define _DEFAULT_SOURCE
+#define
+
#define _BSD_SOURCE
#define _DARWIN_C_SOURCE
#define _XOPEN_SOURCE 700