From 7f38b12881f445c63b3f82994f0ee76516735405 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 18 Jun 2018 09:15:03 +0100 Subject: Define _GNU_SOURCE for strdup() 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 --- test/egl_epoxy_api.c | 1 + test/egl_has_extension_nocontext.c | 1 + 2 files changed, 2 insertions(+) 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 #include #include 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 #include #include -- cgit v1.2.1