From 603fcbc4a497270877e2039eeb506197bac15d83 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 8 Sep 2019 19:44:54 -0700 Subject: test: #define __EXTENSIONS__ on Solaris for strdup() Needed to allow functions outside the original XPG3 standard to be visible in the Solaris headers when _XOPEN_SOURCE is defined and not set to a particular value. Signed-off-by: Alan Coopersmith --- test/egl_epoxy_api.c | 4 ++++ test/egl_has_extension_nocontext.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'test') 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 #include #include 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 #include #include -- cgit v1.2.1