summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-11-05 19:06:45 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-11-05 19:06:45 (GMT)
commit557a42a9dd6b15dbd52d9ac8f3ec85db9601b48f (patch)
treec3999664e5df806666bc5dbc2e9c06694a4eddb4 /Utilities/cmlibarchive
parent5a6cb44e96480cb6de4d3790608f1afc952d6b18 (diff)
downloadCMake-557a42a9dd6b15dbd52d9ac8f3ec85db9601b48f.zip
CMake-557a42a9dd6b15dbd52d9ac8f3ec85db9601b48f.tar.gz
CMake-557a42a9dd6b15dbd52d9ac8f3ec85db9601b48f.tar.bz2
Fix libarchive linker errors on SunOS for mkdev/major/minor
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_entry.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_entry.c b/Utilities/cmlibarchive/libarchive/archive_entry.c
index d75dde5..9d27f21 100644
--- a/Utilities/cmlibarchive/libarchive/archive_entry.c
+++ b/Utilities/cmlibarchive/libarchive/archive_entry.c
@@ -29,6 +29,10 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_entry.c,v 1.55 2008/12/23 05:01:4
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
+#if defined(__sun)
+#include <sys/types.h>
+#include <sys/mkdev.h>
+#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif