From a7fd674ed8be30f50795f3feeace3e1626b67c56 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 29 Jul 2018 13:26:08 +0100 Subject: deal with feature macro oddity for mkostemp --- src/surface/wld.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 + +/* deal with using -std=c99 and glibc changed to no have mkostemp with it set */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#include +#undef _GNU_SOURCE +#else #include +#endif + #include #include -- cgit v1.2.3