util/anon_file: add missing #include
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 8 Aug 2019 09:44:54 +0000 (10:44 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 8 Aug 2019 21:02:54 +0000 (22:02 +0100)
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>
src/util/anon_file.c

index 184b8445bad1c76f8ded25f5c3ee33a4a5f9ec41..c05ed94fdfef5f5556a8d51c082eba7e8e9f84e2 100644 (file)
@@ -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))