$OpenBSD: patch-src_preludedb-plugin-sql_c,v 1.1 2007/04/15 11:38:10 aanriot Exp $
--- src/preludedb-plugin-sql.c.orig	Sat Apr  7 18:27:54 2007
+++ src/preludedb-plugin-sql.c	Sat Apr  7 18:28:12 2007
@@ -29,7 +29,7 @@
 #include "preludedb-plugin-sql.h"
 
 
-#define PRELUDEDB_ENOTSUP(x) preludedb_error_verbose(prelude_error_code_from_errno(ENOTSUP), "Database backend does not support '%s' operation", x)
+#define PRELUDEDB_ENOTSUP(x) preludedb_error_verbose(prelude_error_code_from_errno(EOPNOTSUPP), "Database backend does not support '%s' operation", x)
 
 struct preludedb_plugin_sql {
         PRELUDE_PLUGIN_GENERIC;
