Project

General

Profile

Bug #227

On OpenBSD, "ENOTSUP" is not defined

Added by about 15 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
% Done:

0%

Resolution:
fixed

Description

On [[OpenBSD]], "ENOTSUP" is not defined so we are running with the diff below:

$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;

History

#1 Updated by Yoann VANDOORSELAERE about 15 years ago

  • Status changed from New to Assigned

#2 Updated by Yoann VANDOORSELAERE about 15 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

(In r9516) Fix compilation on system without ENOTSUP (fix #227):
Include modified patch from Alexandre Anriot <>.

#3 Updated by almost 15 years ago

  • Status changed from Closed to Feedback
  • Resolution deleted (fixed)

it seems that 'modified' patch got it all wrong:
this is the check:

#if ! defined(ENOTSUP) && defined(ENOTSUPP)
  1. define ENOTSUP ENOTSUPP
    #endif

ENOTSUPP is not defined on [[OpenBSD]]
EOPNOTSUPP is though, as per original posting.

#4 Updated by Yoann VANDOORSELAERE almost 15 years ago

  • Status changed from Feedback to Closed
  • Resolution set to fixed

(In r10023) Fix [[OpenBSD]] compilation issue, thanks Alexandre Anriot <>
for pointing out this (fix #227).

#5 Updated by Yoann VANDOORSELAERE over 13 years ago

  • Project changed from PRELUDE SIEM to LibpreludeDB
  • Category deleted (2)
  • Target version deleted (0.9.13)

Also available in: Atom PDF