libarchive: Include linux/types.h before linux/fiemap.h
Some Linux API versions do not perform this inclusion automatically, so types like __u64 needed by the latter are not available.
This commit is contained in:
parent
f293b73d71
commit
b6ca96ec95
|
@ -250,6 +250,7 @@ LA_CHECK_INCLUDE_FILE("inttypes.h" HAVE_INTTYPES_H)
|
||||||
LA_CHECK_INCLUDE_FILE("io.h" HAVE_IO_H)
|
LA_CHECK_INCLUDE_FILE("io.h" HAVE_IO_H)
|
||||||
LA_CHECK_INCLUDE_FILE("langinfo.h" HAVE_LANGINFO_H)
|
LA_CHECK_INCLUDE_FILE("langinfo.h" HAVE_LANGINFO_H)
|
||||||
LA_CHECK_INCLUDE_FILE("limits.h" HAVE_LIMITS_H)
|
LA_CHECK_INCLUDE_FILE("limits.h" HAVE_LIMITS_H)
|
||||||
|
LA_CHECK_INCLUDE_FILE("linux/types.h" HAVE_LINUX_TYPES_H)
|
||||||
LA_CHECK_INCLUDE_FILE("linux/fiemap.h" HAVE_LINUX_FIEMAP_H)
|
LA_CHECK_INCLUDE_FILE("linux/fiemap.h" HAVE_LINUX_FIEMAP_H)
|
||||||
LA_CHECK_INCLUDE_FILE("linux/fs.h" HAVE_LINUX_FS_H)
|
LA_CHECK_INCLUDE_FILE("linux/fs.h" HAVE_LINUX_FS_H)
|
||||||
LA_CHECK_INCLUDE_FILE("linux/magic.h" HAVE_LINUX_MAGIC_H)
|
LA_CHECK_INCLUDE_FILE("linux/magic.h" HAVE_LINUX_MAGIC_H)
|
||||||
|
|
|
@ -603,6 +603,9 @@ typedef uint64_t uintmax_t;
|
||||||
/* Define to 1 if you have the `link' function. */
|
/* Define to 1 if you have the `link' function. */
|
||||||
#cmakedefine HAVE_LINK 1
|
#cmakedefine HAVE_LINK 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <linux/types.h> header file. */
|
||||||
|
#cmakedefine HAVE_LINUX_TYPES_H 1
|
||||||
|
|
||||||
/* Define to 1 if you have the <linux/fiemap.h> header file. */
|
/* Define to 1 if you have the <linux/fiemap.h> header file. */
|
||||||
#cmakedefine HAVE_LINUX_FIEMAP_H 1
|
#cmakedefine HAVE_LINUX_FIEMAP_H 1
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,9 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_read_disk_entry_from_file.c 2010
|
||||||
#ifdef HAVE_LIMITS_H
|
#ifdef HAVE_LIMITS_H
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_LINUX_TYPES_H
|
||||||
|
#include <linux/types.h>
|
||||||
|
#endif
|
||||||
#ifdef HAVE_LINUX_FIEMAP_H
|
#ifdef HAVE_LINUX_FIEMAP_H
|
||||||
#include <linux/fiemap.h>
|
#include <linux/fiemap.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue