summaryrefslogtreecommitdiff
path: root/archivers/libarchive/files/libarchive/filter_fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/libarchive/files/libarchive/filter_fork.c')
-rw-r--r--archivers/libarchive/files/libarchive/filter_fork.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/archivers/libarchive/files/libarchive/filter_fork.c b/archivers/libarchive/files/libarchive/filter_fork.c
index 8cad9e2f098..3c2d829d052 100644
--- a/archivers/libarchive/files/libarchive/filter_fork.c
+++ b/archivers/libarchive/files/libarchive/filter_fork.c
@@ -25,6 +25,9 @@
#include "archive_platform.h"
+/* This capability is only available on POSIX systems. */
+#if defined(HAVE_PIPE) && defined(HAVE_VFORK) && defined(HAVE_FCNTL)
+
__FBSDID("$FreeBSD: src/lib/libarchive/filter_fork.c,v 1.2 2007/12/30 04:58:22 kientzle Exp $");
#if defined(HAVE_POLL)
@@ -137,3 +140,5 @@ __archive_check_child(int in, int out)
sleep(1);
#endif
}
+
+#endif /* defined(HAVE_PIPE) && defined(HAVE_VFORK) && defined(HAVE_FCNTL) */