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.
This commit is contained in:
Michihiro NAKAJIMA committed 2014-06-29 17:16:20 +09:00
1 parent 2b79319fe0
commit 5ad9ecddb5
1 file changed
+2
+2
View File
@@ -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