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

Author: Eric Engestrom <[email protected]>
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 <[email protected]>
Tested-by: Eric Anholt <[email protected]>
Tested-by: Andreas Baierl <[email protected]>
(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))

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to