From b46bf471712ae152722ded16676ead1cbf7b2577 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 25 Feb 2008 17:05:21 +0100 Subject: Fix the build on OpenBSD: ENOTSUP is not always defined. Michael (This used to be commit 2e4028162f3a93c677a57b96de8f0cb2f892e73b) --- source3/modules/vfs_xattr_tdb.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/modules/vfs_xattr_tdb.c') 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; } -- cgit