diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-06-18 09:15:03 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-06-18 09:15:03 +0100 |
commit | 7f38b12881f445c63b3f82994f0ee76516735405 (patch) | |
tree | 7ed219b8d3e08deb40e768a8ecb03458d17d834b | |
parent | 7b8a540dce41c259a720c9ad4875cd8aa9d74240 (diff) | |
download | libepoxy-issue-181.tar.gz |
Define _GNU_SOURCE for strdup()issue-181
The strdup() function is available on uClibc if _XOPEN_SOURCE_EXTENDED
is defined; since we're using _GNU_SOURCE elsewhere to enable extended
libc features, and uClibc will set _XOPEN_SOURCE_EXTENDED if _GNU_SOURCE
is set, let's use that.
Closes #181
-rw-r--r-- | test/egl_epoxy_api.c | 1 | ||||
-rw-r--r-- | test/egl_has_extension_nocontext.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/egl_epoxy_api.c b/test/egl_epoxy_api.c index 2c1b257..a840525 100644 --- a/test/egl_epoxy_api.c +++ b/test/egl_epoxy_api.c @@ -27,6 +27,7 @@ * Tests the Epoxy API using EGL. */ +#define _GNU_SOURCE #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 94a7faa..a95860a 100644 --- a/test/egl_has_extension_nocontext.c +++ b/test/egl_has_extension_nocontext.c @@ -28,6 +28,7 @@ * no context bound would fail out in dispatch. */ +#define _GNU_SOURCE #include <stdio.h> #include <string.h> #include <stdlib.h> |