Mesa (staging/19.1): util/anon_file: add missing #include

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 27 10:01:50 UTC 2019


Module: Mesa
Branch: staging/19.1
Commit: 469d4e608dca9e9cd5bee194515165617599ae25
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=469d4e608dca9e9cd5bee194515165617599ae25

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Thu Aug  8 10:44:54 2019 +0100

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 at intel.com>
Tested-by: Eric Anholt <eric at anholt.net>
Tested-by: Andreas Baierl <ichgeh at imkreisrum.de>
(cherry picked from commit 60af7f5a81f822b869b3ebe98e892e6b0aeede0f)

---

 src/util/anon_file.c | 3 +++
 1 file changed, 3 insertions(+)

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))




More information about the mesa-commit mailing list