diff options
-rw-r--r-- | config.h.in | 2 | ||||
-rw-r--r-- | src/cdb/cdb.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/config.h.in b/config.h.in index 28f872445..87fd735ed 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 |