Add some needed includes
This commit is contained in:
parent
98864091ff
commit
3fe7d91713
5
glfw/memfd.h
vendored
5
glfw/memfd.h
vendored
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#ifdef HAS_MEMFD_CREATE
|
#ifdef HAS_MEMFD_CREATE
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
static inline int memfd_create(const char *name, unsigned int flags) {
|
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
|
#else
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
createTmpfileCloexec(char* tmpname)
|
createTmpfileCloexec(char* tmpname)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user