diff --git a/lib/libarchive/archive_read_support_format_cpio.c b/lib/libarchive/archive_read_support_format_cpio.c index 75b041761067..57ea7a5efa0c 100644 --- a/lib/libarchive/archive_read_support_format_cpio.c +++ b/lib/libarchive/archive_read_support_format_cpio.c @@ -28,6 +28,9 @@ __FBSDID("$FreeBSD$"); #include +#ifdef MAJOR_IN_MKDEV +#include +#endif #include /* #include */ /* See archive_platform.h */