Mesa (master): megadriver_stub.c: don' t use _GNU_SOURCE to gate the compat code
Emil Velikov
evelikov at kemper.freedesktop.org
Sat Apr 5 13:08:53 UTC 2014
Module: Mesa
Branch: master
Commit: 1cc742d912b76b2cbf97a5a44f271b4f41037bec
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1cc742d912b76b2cbf97a5a44f271b4f41037bec
Author: Jonathan Gray <jsg at jsg.id.au>
Date: Wed Mar 19 01:59:18 2014 +1100
megadriver_stub.c: don't use _GNU_SOURCE to gate the compat code
_GNU_SOURCE is only set/required for linux*|*-gnu*|gnu*) and as the
functionality is available on other systems check for RTLD_DEFAULT instead.
Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/mesa/drivers/dri/common/megadriver_stub.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/common/megadriver_stub.c b/src/mesa/drivers/dri/common/megadriver_stub.c
index a821770..7b6d134 100644
--- a/src/mesa/drivers/dri/common/megadriver_stub.c
+++ b/src/mesa/drivers/dri/common/megadriver_stub.c
@@ -31,7 +31,7 @@
* Dl_info, and RTLD_DEFAULT are only defined when _GNU_SOURCE is
* defined.)
*/
-#ifdef _GNU_SOURCE
+#ifdef RTLD_DEFAULT
#define MEGADRIVER_STUB_MAX_EXTENSIONS 10
#define LIB_PATH_SUFFIX "_dri.so"
@@ -148,7 +148,7 @@ megadriver_stub_init(void)
}
}
-#endif /* _GNU_SOURCE */
+#endif /* RTLD_DEFAULT */
static const
__DRIconfig **stub_error_init_screen(__DRIscreen *psp)
More information about the mesa-commit
mailing list