19 lines
633 B
Diff
19 lines
633 B
Diff
--- glinject/elfhacks.h.orig 2016-05-02 09:43:59.940521673 +0200
|
|
+++ glinject/elfhacks.h 2016-05-02 09:44:35.563864890 +0200
|
|
@@ -48,14 +48,14 @@ extern "C" {
|
|
#if defined(__elf64)
|
|
# define ELFW_R_SYM ELF64_R_SYM
|
|
# define ElfW_Sword Elf64_Sxword
|
|
-# ifdef BSD
|
|
+# if defined(BSD) || defined(__linux__) && !defined(__GLIBC__)
|
|
# define ElfW(v) Elf64_##v
|
|
# define __ELF_NATIVE_CLASS 64
|
|
# endif
|
|
#elif defined(__elf32)
|
|
# define ELFW_R_SYM ELF32_R_SYM
|
|
# define ElfW_Sword Elf32_Sword
|
|
-# ifdef BSD
|
|
+# if defined(BSD) || defined(__linux__) && !defined(__GLIBC__)
|
|
# define ElfW(v) Elf32_##v
|
|
# define __ELF_NATIVE_CLASS 32
|
|
# endif
|