diff options
author | Alan Modra <amodra@gmail.com> | 2022-08-26 17:45:09 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-08-26 18:56:01 +0930 |
commit | 3055522ab17ac7c6781a3507ebac0fab1c3aa5a4 (patch) | |
tree | 50cf047620fef84f79ea2d0118dfa596ac99effc /ld/sysdep.h | |
parent | 8d00b2b74b8cb55432d2a497eec22cac582d9ea7 (diff) | |
download | gdb-3055522ab17ac7c6781a3507ebac0fab1c3aa5a4.zip gdb-3055522ab17ac7c6781a3507ebac0fab1c3aa5a4.tar.gz gdb-3055522ab17ac7c6781a3507ebac0fab1c3aa5a4.tar.bz2 |
PR12265, Compiling ld/ fails on Solaris 8
The fail was due to -Werror and headers included by dlfcn.h and
elf-bfd.h disagreeing about AT_DCACHEBSIZE and other AT_*. Not a
serious problem obviously, since release versions of binutils don't
enable -Werror and the defines are not used. Anyway, reduce the
number of files that might hit this problem by only including dlfcn.h
where it is needed.
PR 12265
* sysdep.h: Don't include dlfcn.h here.
* plugin.c: Include it here.
Diffstat (limited to 'ld/sysdep.h')
-rw-r--r-- | ld/sysdep.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ld/sysdep.h b/ld/sysdep.h index b55a1c2..91f9857 100644 --- a/ld/sysdep.h +++ b/ld/sysdep.h @@ -61,10 +61,6 @@ #endif #endif -#ifdef HAVE_DLFCN_H -#include <dlfcn.h> -#endif - #ifndef O_RDONLY #define O_RDONLY 0 #endif |