From: Andres Mejia Date: Sun, 5 Feb 2012 21:16:16 +0000 (-0500) Subject: Fix implicit function declaration warning when building with cmake. X-Git-Tag: v3.0.4~2^2~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae97051a038d1fffe83b641f03a18fbce6fb3ba1;p=thirdparty%2Flibarchive.git Fix implicit function declaration warning when building with cmake. --- diff --git a/libarchive/archive_read_disk_posix.c b/libarchive/archive_read_disk_posix.c index 8a42e28e3..daa495394 100644 --- a/libarchive/archive_read_disk_posix.c +++ b/libarchive/archive_read_disk_posix.c @@ -89,6 +89,9 @@ __FBSDID("$FreeBSD$"); #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_SYS_IOCTL_H +#include +#endif #include "archive.h" #include "archive_string.h"