From: Michihiro NAKAJIMA Date: Sun, 29 Jun 2014 08:16:20 +0000 (+0900) Subject: Fix builid failure on FreeBSD 10. X-Git-Tag: v3.1.900a~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ad9ecddb52edd096423d9f43bb5d228f2e07f57;p=thirdparty%2Flibarchive.git 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. --- 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