summaryrefslogtreecommitdiff
path: root/dist/libepoxy/test/egl_has_extension_nocontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'dist/libepoxy/test/egl_has_extension_nocontext.c')
-rw-r--r--dist/libepoxy/test/egl_has_extension_nocontext.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/libepoxy/test/egl_has_extension_nocontext.c b/dist/libepoxy/test/egl_has_extension_nocontext.c
index 94a7faa41..4fa5f60a1 100644
--- a/dist/libepoxy/test/egl_has_extension_nocontext.c
+++ b/dist/libepoxy/test/egl_has_extension_nocontext.c
@@ -28,6 +28,11 @@
* no context bound would fail out in dispatch.
*/
+#ifdef __sun
+#define __EXTENSIONS__
+#else
+#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>