From 557a42a9dd6b15dbd52d9ac8f3ec85db9601b48f Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Thu, 5 Nov 2009 14:06:45 -0500 Subject: [PATCH] Fix libarchive linker errors on SunOS for mkdev/major/minor --- Utilities/cmlibarchive/libarchive/archive_entry.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Utilities/cmlibarchive/libarchive/archive_entry.c b/Utilities/cmlibarchive/libarchive/archive_entry.c index d75dde56c..9d27f2164 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 #endif +#if defined(__sun) +#include +#include +#endif #ifdef HAVE_SYS_TYPES_H #include #endif