mesa/dlopen: use HAVE_DLOPEN instead of _GNU_SOURCE
authorTapani Pälli <tapani.palli@intel.com>
Thu, 16 Aug 2012 10:59:12 +0000 (13:59 +0300)
committerMatt Turner <mattst88@gmail.com>
Fri, 24 Aug 2012 18:08:19 +0000 (11:08 -0700)
commit57c57df7b4579b60a84062df2e64f84dd84558b5
tree496c51c3366fe21d4711f288f4392d41c798ae7f
parentdf4dccc7a9691555e05c8945048603621340b5d7
mesa/dlopen: use HAVE_DLOPEN instead of _GNU_SOURCE

Patches changes mesa to use 'HAVE_DLOPEN' defined by configure and Android.mk
instead of _GNU_SOURCE for detecting dlopen capability. This makes dlopen to
work also on Android where _GNU_SOURCE is not defined.

[mattst88] v2: HAVE_DLOPEN is sufficient for including dlfcn.h, remove
       mingw/blrts checks around dlfcn.h inclusion.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Android.common.mk
configure.ac
src/mesa/main/dlopen.c