Add some needed includes

This commit is contained in:
Kovid Goyal
2018-10-03 11:06:01 +05:30
parent 98864091ff
commit 3fe7d91713

5
glfw/memfd.h vendored
View File

@@ -8,7 +8,6 @@
#ifdef HAS_MEMFD_CREATE
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/syscall.h>
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 <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
static inline int
createTmpfileCloexec(char* tmpname)
{