summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-07-29 13:32:50 +0100
committerVincent Sanders <vince@kyllikki.org>2018-07-29 13:32:50 +0100
commit51d3ee85de73949483af79671fe9075a10e405e3 (patch)
treef79a054345c08f30a2e87ad9e220b5b6131009a0
parenta7fd674ed8be30f50795f3feeace3e1626b67c56 (diff)
downloadlibnsfb-51d3ee85de73949483af79671fe9075a10e405e3.tar.gz
libnsfb-51d3ee85de73949483af79671fe9075a10e405e3.tar.bz2
try fixing the mkostemp header issue differently
-rw-r--r--src/surface/wld.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/surface/wld.c b/src/surface/wld.c
index 01bea75..51389b4 100644
--- a/src/surface/wld.c
+++ b/src/surface/wld.c
@@ -8,17 +8,14 @@
#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 <stdbool.h>
+#include <stdlib.h>
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>