Fix the build on OpenBSD: ENOTSUP is not always defined.
authorMichael Adam <obnox@samba.org>
Mon, 25 Feb 2008 16:05:21 +0000 (17:05 +0100)
committerMichael 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

index 0a92d5c591e62d1379c8a81df7565907d4965a2d..7b5e5107476be34d26c59b14b98bf1a6d5179d9c 100644 (file)
@@ -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;
        }