mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-09 21:55:29 +02:00
Add some needed includes
This commit is contained in:
5
glfw/memfd.h
vendored
5
glfw/memfd.h
vendored
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user