summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2019-08-08 10:44:54 +0100
committerEric Engestrom <eric.engestrom@intel.com>2019-08-08 22:02:54 +0100
commit60af7f5a81f822b869b3ebe98e892e6b0aeede0f (patch)
tree97754487416e81578d510fb9df6314dfd28b5654 /src/util
parentac1561088d7e8f395a10eab5de3af6576719831a (diff)
util/anon_file: add missing #include
Fixes: c0376a123418df0050dc ("util: add anon_file.h for all memfd/temp file usage") Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Tested-by: Eric Anholt <eric@anholt.net> Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
Diffstat (limited to 'src/util')
-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))