mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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@jsg.id.au>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
(cherry picked from commit 1cc742d912)
This commit is contained in:
parent
d7df21d08b
commit
4d7504c0c4
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue