mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Add some needed includes
This commit is contained in:
parent
98864091ff
commit
3fe7d91713
1 changed files with 4 additions and 1 deletions
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue