aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c')
-rw-r--r--gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c b/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c
index d246ae124..11f53dd31 100644
--- a/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c
+++ b/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c
@@ -33,7 +33,7 @@
#include "tconfig.h"
#include "tsystem.h"
#ifndef inhibit_libc
-#include <link.h>
+#include <elf.h> /* Get DT_CONFIG. */
#endif
#include "coretypes.h"
#include "tm.h"
@@ -49,6 +49,8 @@
&& (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|| (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
+#include <link.h>
+
#ifndef __RELOC_POINTER
# define __RELOC_POINTER(ptr, base) ((ptr) + (base))
#endif