From 3fe7d91713b947d626e7c273392c00ce91f04688 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 3 Oct 2018 11:06:01 +0530 Subject: [PATCH] Add some needed includes --- glfw/memfd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glfw/memfd.h b/glfw/memfd.h index bdaa29808..ef24c64cc 100644 --- a/glfw/memfd.h +++ b/glfw/memfd.h @@ -8,7 +8,6 @@ #ifdef HAS_MEMFD_CREATE -#define _GNU_SOURCE #include #include static inline int memfd_create(const char *name, unsigned int flags) { @@ -36,6 +35,10 @@ static inline int memfd_create(const char *name, unsigned int flags) { #else +#include +#include +#include + static inline int createTmpfileCloexec(char* tmpname) {