summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2018-06-18 09:57:21 +0100
committerGitHub <noreply@github.com>2018-06-18 09:57:21 +0100
commit49bec45b281d2beda4dff64c8ebf832adbdc7c92 (patch)
treef750557e4fa2433f2c0a48ae47cbca5eabdd94c7
parentb3f67d47bd2b10b9bbf671b26decbef46961573e (diff)
parent7f38b12881f445c63b3f82994f0ee76516735405 (diff)
downloadlibepoxy-49bec45b281d2beda4dff64c8ebf832adbdc7c92.tar.gz
Merge pull request #182 from anholt/issue-181
Define _GNU_SOURCE for strdup()
-rw-r--r--test/egl_epoxy_api.c1
-rw-r--r--test/egl_has_extension_nocontext.c1
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>