summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-07-29 13:26:08 +0100
committerVincent Sanders <vince@kyllikki.org>2018-07-29 13:26:37 +0100
commita7fd674ed8be30f50795f3feeace3e1626b67c56 (patch)
treea77291eef00938f59157b35e2f5419ea3275f228
parent7bb4955f3fc64627c4c3f93b28173e7fc853e775 (diff)
downloadlibnsfb-a7fd674ed8be30f50795f3feeace3e1626b67c56.tar.gz
libnsfb-a7fd674ed8be30f50795f3feeace3e1626b67c56.tar.bz2
deal with feature macro oddity for mkostemp
-rw-r--r--src/surface/wld.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/surface/wld.c b/src/surface/wld.c
index cc543da..01bea75 100644
--- a/src/surface/wld.c
+++ b/src/surface/wld.c
@@ -9,7 +9,16 @@
#define _XOPEN_SOURCE 500
#include <stdbool.h>
+
+/* deal with using -std=c99 and glibc changed to no have mkostemp with it set */
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#include <stdlib.h>
+#undef _GNU_SOURCE
+#else
#include <stdlib.h>
+#endif
+
#include <stdio.h>
#include <string.h>