From 32ddefe134a713e0c73d5ee466624e44e7098dfc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 13 May 2014 15:08:05 +0100 Subject: [PATCH] Some fixes for OpenBSD. --- config.h.in | 2 +- src/cdb/cdb.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config.h.in b/config.h.in index 2148ebd58..c8908f97a 100644 --- a/config.h.in +++ b/config.h.in @@ -86,7 +86,7 @@ #endif /* HAVE_SYS_ENDIAN_H */ #endif /* HAVE_ENDIAN_H */ - #if !defined(BYTE_ORDER) || (BYTE_ORDER != BIG_ENDIAN && BYTE_ORDER != LITTLE_ENDIAN) + #if !defined(BYTE_ORDER) # error "Undefined or unknown BYTE_ORDER" #endif diff --git a/src/cdb/cdb.h b/src/cdb/cdb.h index bdf4caeb3..03da9ac41 100644 --- a/src/cdb/cdb.h +++ b/src/cdb/cdb.h @@ -10,6 +10,13 @@ #include "config.h" +/* + * OpenBSD fix + */ +#ifndef EPROTO +#define EPROTO EPROTONOSUPPORT +#endif + #ifdef __cplusplus extern "C" { #endif -- 2.39.5