From: Vsevolod Stakhov Date: Tue, 13 May 2014 14:08:05 +0000 (+0100) Subject: Some fixes for OpenBSD. X-Git-Tag: 0.6.10~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32ddefe134a713e0c73d5ee466624e44e7098dfc;p=thirdparty%2Frspamd.git Some fixes for OpenBSD. --- diff --git a/config.h.in b/config.h.in index 2148ebd58f..c8908f97a7 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 bdf4caeb31..03da9ac41b 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