]> source.dussan.org Git - rspamd.git/commitdiff
Some fixes for OpenBSD.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 May 2014 14:08:05 +0000 (15:08 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 May 2014 14:10:04 +0000 (15:10 +0100)
config.h.in
src/cdb/cdb.h

index 2148ebd58fb732997994feafa6d6e7f4de26ebdc..c8908f97a7e5e67aeb0c3e1956a4bf57d94ead05 100644 (file)
@@ -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
  
index bdf4caeb319227c17754c523f4471545e91e75b0..03da9ac41b794aed3f9a3a586e6141c112a1ce41 100644 (file)
 
 #include "config.h"
 
+/*
+ * OpenBSD fix
+ */
+#ifndef EPROTO
+#define EPROTO EPROTONOSUPPORT
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif