summaryrefslogtreecommitdiff
path: root/source3
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
commitb46bf471712ae152722ded16676ead1cbf7b2577 (patch)
treef4cee774f2a3c475903d30a7733479c2e8f1e16e /source3
parent317639287886181edf08ccecad1b324e4cc55d0b (diff)
downloadsamba-b46bf471712ae152722ded16676ead1cbf7b2577.tar.gz
samba-b46bf471712ae152722ded16676ead1cbf7b2577.tar.bz2
samba-b46bf471712ae152722ded16676ead1cbf7b2577.zip
Fix the build on OpenBSD: ENOTSUP is not always defined.
Michael (This used to be commit 2e4028162f3a93c677a57b96de8f0cb2f892e73b)
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_xattr_tdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c
index 0a92d5c591..7b5e510747 100644
--- a/source3/modules/vfs_xattr_tdb.c
+++ b/source3/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;
}