diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/egl_epoxy_api.c | 4 | ||||
-rw-r--r-- | test/egl_has_extension_nocontext.c | 4 | ||||
-rw-r--r-- | test/meson.build | 2 |
3 files changed, 9 insertions, 1 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> diff --git a/test/meson.build b/test/meson.build index c73bf5d..862d57a 100644 --- a/test/meson.build +++ b/test/meson.build @@ -80,7 +80,7 @@ if build_egl and build_x11_tests endforeach endif -if build_glx +if build_glx and build_x11_tests glx_common_sources = [ 'glx_common.h', 'glx_common.c', ] glx_common_lib = static_library('glx_common', sources: glx_common_sources, |