Browse Source

Fix libarchive linker errors on SunOS for mkdev/major/minor

Zach Mullen 16 years ago
parent
commit
557a42a9dd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Utilities/cmlibarchive/libarchive/archive_entry.c

+ 4 - 0
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