summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dlopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/dlopen.c')
-rw-r--r--src/mesa/main/dlopen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/dlopen.c b/src/mesa/main/dlopen.c
index 338246bb59b..94bec4a0887 100644
--- a/src/mesa/main/dlopen.c
+++ b/src/mesa/main/dlopen.c
@@ -36,7 +36,10 @@
#if defined(_WIN32)
#include <windows.h>
#endif
-
+#if defined(__HAIKU__)
+/* for NULL */
+#include <stdio.h>
+#endif
/**
* Wrapper for dlopen().