diff options
author | kientzle <kientzle@FreeBSD.org> | 2005-11-08 03:52:42 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2005-11-08 03:52:42 +0000 |
commit | 6f0c8478d1df06a22e668197f292f5b2f71dec82 (patch) | |
tree | 4f4ef4df9471a2d4a5debd61a4b9c262902015b8 /lib/libarchive/archive_entry.c | |
parent | 73a216f99c26437ddfc1c03bc4b5ea0be89325c9 (diff) | |
download | FreeBSD-src-6f0c8478d1df06a22e668197f292f5b2f71dec82.zip FreeBSD-src-6f0c8478d1df06a22e668197f292f5b2f71dec82.tar.gz |
Portability: Use some autoconf magic to include the
correct headers for major()/minor()/makedev() on various
platforms.
Thanks to: Darin Broady
Diffstat (limited to 'lib/libarchive/archive_entry.c')
-rw-r--r-- | lib/libarchive/archive_entry.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libarchive/archive_entry.c b/lib/libarchive/archive_entry.c index 82d76b4..de7238d 100644 --- a/lib/libarchive/archive_entry.c +++ b/lib/libarchive/archive_entry.c @@ -29,6 +29,13 @@ __FBSDID("$FreeBSD$"); #include <sys/stat.h> #include <sys/types.h> +#ifdef MAJOR_IN_MKDEV +#include <sys/mkdev.h> +#else +#ifdef MAJOR_IN_SYSMACROS +#include <sys/sysmacros.h> +#endif +#endif #ifdef HAVE_EXT2FS_EXT2_FS_H #include <ext2fs/ext2_fs.h> /* for Linux file flags */ #endif |