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 <alan.coopersmith@oracle.com>
macos/v1.5.9
Alan Coopersmith 5 years ago
parent 8573dbcee3
commit 603fcbc4a4
  1. 4
      test/egl_epoxy_api.c
  2. 4
      test/egl_has_extension_nocontext.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>

@ -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>

Loading…
Cancel
Save