aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/archive_read_support_compression_program.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2009-04-12 05:33:34 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2009-04-12 05:33:34 +0000
commite2421f76676c33a8de3054504f3ecb9ca3d1ee75 (patch)
treeea7abcf2cbb02747476436a0768d0136320ece2d /lib/libarchive/archive_read_support_compression_program.c
parentf0b9868d3a0d119efe6c1e3fbd1197dbdcf528a0 (diff)
Merge from libarchive.googlecode.com: Mostly a bunch of
corrections to the Windows support to reconcile differences between Visual Studio and Cygwin. Includes parts of revisions 757, 774, 787, 815, 817, 819, 820, 844, and 886. Of particular note, r886 overhauled the UTF-8/Unicode conversions to work correctly regardless of whether the local system uses 16-bit or 32-bit wchar_t. (I assume that systems with 16-bit wchar_t use UTF-16 and those with 32-bit wchar_t use UCS-4.) This revision also added a preference for wcrtomb() (which is thread-safe) on platforms that support it.
Notes
Notes: svn path=/head/; revision=190959
Diffstat (limited to 'lib/libarchive/archive_read_support_compression_program.c')
-rw-r--r--lib/libarchive/archive_read_support_compression_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_read_support_compression_program.c b/lib/libarchive/archive_read_support_compression_program.c
index 44632558cfa7..d405e3b78d56 100644
--- a/lib/libarchive/archive_read_support_compression_program.c
+++ b/lib/libarchive/archive_read_support_compression_program.c
@@ -61,7 +61,7 @@ archive_read_support_compression_program(struct archive *a, const char *cmd)
/* This capability is only available on POSIX systems. */
#if (!defined(HAVE_PIPE) || !defined(HAVE_FCNTL) || \
- !(defined(HAVE_FORK) || defined(HAVE_VFORK))) && !defined(_WIN32)
+ !(defined(HAVE_FORK) || defined(HAVE_VFORK))) && (!defined(_WIN32) || defined(__CYGWIN__))
/*
* On non-Posix systems, allow the program to build, but choke if