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:
1 parent
2b79319fe0
commit
5ad9ecddb5
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user