summaryrefslogtreecommitdiff
path: root/dist/libepoxy/test/egl_epoxy_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'dist/libepoxy/test/egl_epoxy_api.c')
-rw-r--r--dist/libepoxy/test/egl_epoxy_api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/libepoxy/test/egl_epoxy_api.c b/dist/libepoxy/test/egl_epoxy_api.c
index 2c1b2571c..252b535d9 100644
--- a/dist/libepoxy/test/egl_epoxy_api.c
+++ b/dist/libepoxy/test/egl_epoxy_api.c
@@ -27,6 +27,11 @@
* Tests the Epoxy API using EGL.
*/
+#ifdef __sun
+#define __EXTENSIONS__
+#else
+#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>