summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2019-09-09 11:30:01 +0100
committerGitHub <noreply@github.com>2019-09-09 11:30:01 +0100
commit7888347610b45573b2e7a0fbc3b31dd117fcfc5c (patch)
treeee9fa64b6c07f66452e79983477d95ec470d283b
parent8573dbcee30506f7ad1831247789deaf53a56a10 (diff)
parent603fcbc4a497270877e2039eeb506197bac15d83 (diff)
downloadlibepoxy-7888347610b45573b2e7a0fbc3b31dd117fcfc5c.tar.gz
Merge pull request #210 from alanc/solaris
test: #define __EXTENSIONS__ on Solaris for strdup()
-rw-r--r--test/egl_epoxy_api.c4
-rw-r--r--test/egl_has_extension_nocontext.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/egl_epoxy_api.c b/test/egl_epoxy_api.c
index a840525..252b535 100644
--- a/test/egl_epoxy_api.c
+++ b/test/egl_epoxy_api.c
@@ -27,7 +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>
diff --git a/test/egl_has_extension_nocontext.c b/test/egl_has_extension_nocontext.c
index a95860a..4fa5f60 100644
--- a/test/egl_has_extension_nocontext.c
+++ b/test/egl_has_extension_nocontext.c
@@ -28,7 +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>