summaryrefslogtreecommitdiff
path: root/cpio
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2009-01-21 01:31:26 -0500
committerTim Kientzle <kientzle@gmail.com>2009-01-21 01:31:26 -0500
commita265d9ba8c27cc8f1bb6cb2e1f29f8933ef188bc (patch)
treea3af26f276fb2ac8b45036a9221247fec39dfa9f /cpio
parentfaa9066cecaea4100a9b0268c3feaa9ab5dcca5d (diff)
downloadlibarchive-a265d9ba8c27cc8f1bb6cb2e1f29f8933ef188bc.tar.gz
Fix Solaris 10 and OpenSolaris builds of bsdcpio.
Submitted by: Fabian Groffen SVN-Revision: 455
Diffstat (limited to 'cpio')
-rw-r--r--cpio/cpio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpio/cpio.c b/cpio/cpio.c
index 6ce2c37d..63422d43 100644
--- a/cpio/cpio.c
+++ b/cpio/cpio.c
@@ -32,6 +32,9 @@ __FBSDID("$FreeBSD: src/usr.bin/cpio/cpio.c,v 1.15 2008/12/06 07:30:40 kientzle
#include <archive.h>
#include <archive_entry.h>
+#ifdef HAVE_SYS_MKDEV_H
+#include <sys/mkdev.h>
+#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif