summaryrefslogtreecommitdiffstats
path: root/Source/cmELF.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-28 13:43:10 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-28 13:43:10 (GMT)
commitd404c6bff686d1d9a39d0d27702469e14fd2587b (patch)
treef135eef0c874a29b1df8435c47a05a936513456b /Source/cmELF.cxx
parentfcad490654e0e6f4c1d33f5c368dec38f0a42f97 (diff)
downloadCMake-d404c6bff686d1d9a39d0d27702469e14fd2587b.zip
CMake-d404c6bff686d1d9a39d0d27702469e14fd2587b.tar.gz
CMake-d404c6bff686d1d9a39d0d27702469e14fd2587b.tar.bz2
COMP: cmELF needs to include sys/link.h to get dynamic section structures on the Sun.
Diffstat (limited to 'Source/cmELF.cxx')
-rw-r--r--Source/cmELF.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx
index 8b9d9af..5450eea 100644
--- a/Source/cmELF.cxx
+++ b/Source/cmELF.cxx
@@ -24,6 +24,9 @@
// Include the ELF format information system header.
#include <elf.h>
+#if defined(__sun)
+# include <sys/link.h> // For dynamic section information
+#endif
//----------------------------------------------------------------------------
// Low-level byte swapping implementation.