summaryrefslogtreecommitdiffstats
path: root/source/modules
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-02-25 17:05:21 +0100
committerMichael Adam <obnox@samba.org>2008-02-25 17:06:09 +0100
commit2e4028162f3a93c677a57b96de8f0cb2f892e73b (patch)
tree7f41a0cbe14cc3aa1988bca39b27330047061b44 /source/modules
parentad37b7b0aee265a3e4d8b7552610f4b9a105434d (diff)
downloadsamba-2e4028162f3a93c677a57b96de8f0cb2f892e73b.tar.gz
samba-2e4028162f3a93c677a57b96de8f0cb2f892e73b.tar.xz
samba-2e4028162f3a93c677a57b96de8f0cb2f892e73b.zip
Fix the build on OpenBSD: ENOTSUP is not always defined.
Michael
Diffstat (limited to 'source/modules')
-rw-r--r--source/modules/vfs_xattr_tdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/modules/vfs_xattr_tdb.c b/source/modules/vfs_xattr_tdb.c
index 0a92d5c591e..7b5e5107476 100644
--- a/source/modules/vfs_xattr_tdb.c
+++ b/source/modules/vfs_xattr_tdb.c
@@ -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;
}