aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/test/test_read_disk_directory_traversals.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/test/test_read_disk_directory_traversals.c')
-rw-r--r--libarchive/test/test_read_disk_directory_traversals.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libarchive/test/test_read_disk_directory_traversals.c b/libarchive/test/test_read_disk_directory_traversals.c
index 7dd19157d4d2..bbfe91ab8e5e 100644
--- a/libarchive/test/test_read_disk_directory_traversals.c
+++ b/libarchive/test/test_read_disk_directory_traversals.c
@@ -1775,7 +1775,8 @@ test_parent(void)
archive_entry_clear(ae);
r = archive_read_next_header2(a, ae);
if (r == ARCHIVE_FAILED) {
-#if defined(O_PATH) || defined(O_SEARCH) || defined(O_EXEC)
+#if defined(O_PATH) || defined(O_SEARCH) || \
+ (defined(__FreeBSD__) && defined(O_EXEC))
assertEqualIntA(a, ARCHIVE_OK, r);
#endif
/* Close the disk object. */