aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/anon_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/anon_file.c')
-rw-r--r--src/util/anon_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/anon_file.c b/src/util/anon_file.c
index 184b8445bad..c05ed94fdfe 100644
--- a/src/util/anon_file.c
+++ b/src/util/anon_file.c
@@ -39,6 +39,9 @@
#elif defined(HAVE_MEMFD_CREATE)
#include <sys/syscall.h>
#include <linux/memfd.h>
+#else
+#include <stdio.h>
+#include <stdlib.h>
#endif
#if !(defined(__FreeBSD__) || defined(HAVE_MEMFD_CREATE) || defined(HAVE_MKOSTEMP))