From 5ad9ecddb52edd096423d9f43bb5d228f2e07f57 Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Sun, 29 Jun 2014 17:16:20 +0900 Subject: [PATCH] Fix builid failure on FreeBSD 10. On FreeBSD 10, ENOTSUP and EOPNOTSUPP are the same value, so it cannot be used in the same switch statement. --- libarchive/archive_write_disk_posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libarchive/archive_write_disk_posix.c b/libarchive/archive_write_disk_posix.c index 426e24287..87f4f0e56 100644 --- a/libarchive/archive_write_disk_posix.c +++ b/libarchive/archive_write_disk_posix.c @@ -3063,7 +3063,9 @@ set_mode(struct archive_write_disk *a, int mode) switch (errno) { case ENOTSUP: case ENOSYS: +#if ENOTSUP != EOPNOTSUPP case EOPNOTSUPP: +#endif /* * if lchmod is defined but the platform * doesn't support it, silently ignore -- 2.47.2