diff --git a/archivers/libarchive/files/libarchive/archive_entry.c b/archivers/libarchive/files/libarchive/archive_entry.c index 69921c309f1d..dde2f976d4eb 100644 --- a/archivers/libarchive/files/libarchive/archive_entry.c +++ b/archivers/libarchive/files/libarchive/archive_entry.c @@ -39,9 +39,6 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_entry.c,v 1.52 2008/05/26 17:00:2 #include #endif #endif -#ifdef HAVE_EXT2FS_EXT2_FS_H -#include /* for Linux file flags */ -#endif #ifdef HAVE_LIMITS_H #include #endif @@ -51,6 +48,13 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_entry.c,v 1.52 2008/05/26 17:00:2 #ifdef HAVE_LINUX_EXT2_FS_H #include /* for Linux file flags */ #endif +#ifdef HAVE_EXT2FS_EXT2_FS_H +/* + * This must be after the include of linux/ext2_fs.h, + * otherwise the former will fail. + */ +#include /* for Linux file flags */ +#endif #include #include #ifdef HAVE_STDLIB_H diff --git a/archivers/libarchive/files/libarchive/archive_write_disk.c b/archivers/libarchive/files/libarchive/archive_write_disk.c index 238173c42a21..a17c725111cc 100644 --- a/archivers/libarchive/files/libarchive/archive_write_disk.c +++ b/archivers/libarchive/files/libarchive/archive_write_disk.c @@ -49,9 +49,6 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_write_disk.c,v 1.26 2008/06/21 19 #include #endif -#ifdef HAVE_EXT2FS_EXT2_FS_H -#include /* for Linux file flags */ -#endif #ifdef HAVE_ERRNO_H #include #endif @@ -64,6 +61,16 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_write_disk.c,v 1.26 2008/06/21 19 #ifdef HAVE_LINUX_FS_H #include /* for Linux file flags */ #endif +#ifdef HAVE_LINUX_EXT2_FS_H +#include /* for Linux file flags */ +#endif +#ifdef HAVE_EXT2FS_EXT2_FS_H +/* + * This must be after the include of linux/ext2_fs.h, + * otherwise the former will fail. + */ +#include /* for Linux file flags */ +#endif #ifdef HAVE_LIMITS_H #include #endif diff --git a/archivers/libarchive/files/tar/write.c b/archivers/libarchive/files/tar/write.c index 3d4fd186b994..2552226df48e 100644 --- a/archivers/libarchive/files/tar/write.c +++ b/archivers/libarchive/files/tar/write.c @@ -44,9 +44,6 @@ __FBSDID("$FreeBSD: src/usr.bin/tar/write.c,v 1.70 2008/05/26 17:10:10 kientzle #ifdef HAVE_ERRNO_H #include #endif -#ifdef HAVE_EXT2FS_EXT2_FS_H -#include -#endif #ifdef HAVE_FCNTL_H #include #endif @@ -62,6 +59,16 @@ __FBSDID("$FreeBSD: src/usr.bin/tar/write.c,v 1.70 2008/05/26 17:10:10 kientzle #ifdef HAVE_LINUX_FS_H #include /* for Linux file flags */ #endif +#ifdef HAVE_LINUX_EXT2_FS_H +#include /* for Linux file flags */ +#endif +#ifdef HAVE_EXT2FS_EXT2_FS_H +/* + * This must be after the include of linux/ext2_fs.h, + * otherwise the former will fail. + */ +#include /* for Linux file flags */ +#endif #ifdef HAVE_PWD_H #include #endif