]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
The EXT2 ioctls are used on Linux to get/set file flags.
authorTim Kientzle <kientzle@gmail.com>
Thu, 25 Dec 2008 14:41:32 +0000 (09:41 -0500)
committerTim Kientzle <kientzle@gmail.com>
Thu, 25 Dec 2008 14:41:32 +0000 (09:41 -0500)
The header defining these exists on some Cygwin installations,
but it's broken.  I don't think Cygwin supports these ioctls
anyway, so I don't see any point in including the header there.
Someone with more autoconf-fu than I have probably knows a better
solution to this problem.

SVN-Revision: 283

libarchive/archive_write_disk.c
tar/write.c

index 6f3e47a3270c82284f666eaf2bcaacd753f37f84..ef10723c1e4bdc402cc917d5335a3c34c35c735f 100644 (file)
@@ -49,8 +49,8 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_write_disk.c,v 1.42 2008/12/06 05
 #include <sys/utime.h>
 #endif
 
-#ifdef HAVE_EXT2FS_EXT2_FS_H
-#include <ext2fs/ext2_fs.h>    /* for Linux file flags */
+#if defined(HAVE_EXT2FS_EXT2_FS_H) && !defined(__CYGWIN__)
+#include <ext2fs/ext2_fs.h>    /* Linux file flags, broken on Cygwin */
 #endif
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
index 4d36018afec975c6e326615abe12c2b1ab26e046..9cc7200cb30eb1a583b9761f82ca851903eec499 100644 (file)
@@ -44,7 +44,8 @@ __FBSDID("$FreeBSD: src/usr.bin/tar/write.c,v 1.79 2008/11/27 05:49:52 kientzle
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #endif
-#ifdef HAVE_EXT2FS_EXT2_FS_H
+#if defined(HAVE_EXT2FS_EXT2_FS_H) && !defined(__CYGWIN__)
+/* This header exists but is broken on Cygwin. */
 #include <ext2fs/ext2_fs.h>
 #endif
 #ifdef HAVE_FCNTL_H