mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Fix the build on OpenBSD: ENOTSUP is not always defined.
Michael
This commit is contained in:
parent
ad37b7b0ae
commit
2e4028162f
@ -588,7 +588,11 @@ static bool xattr_tdb_init(int snum, struct db_context **p_db)
|
||||
unbecome_root();
|
||||
|
||||
if (db == NULL) {
|
||||
#if defined(ENOTSUP)
|
||||
errno = ENOTSUP;
|
||||
#else
|
||||
errno = ENOSYS;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user