git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3176392
)
Fix the build on OpenBSD: ENOTSUP is not always defined.
author
Michael Adam
<obnox@samba.org>
Mon, 25 Feb 2008 16:05:21 +0000
(17:05 +0100)
committer
Michael Adam
<obnox@samba.org>
Mon, 25 Feb 2008 16:06:09 +0000
(17:06 +0100)
Michael
(This used to be commit
2e4028162f3a93c677a57b96de8f0cb2f892e73b
)
source3/modules/vfs_xattr_tdb.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_xattr_tdb.c
b/source3/modules/vfs_xattr_tdb.c
index 0a92d5c591e62d1379c8a81df7565907d4965a2d..7b5e5107476be34d26c59b14b98bf1a6d5179d9c 100644
(file)
--- 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;
}