$OpenBSD: patch-os_hpp,v 1.13 2017/06/21 21:19:05 naddy Exp $
Index: os.hpp
--- os.hpp.orig
+++ os.hpp
@@ -119,6 +119,7 @@
 
 #define  NM  2048
 
+#include <machine/endian.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -150,6 +151,10 @@
 #include <locale.h>
 
 
+#ifdef OPENSSL_AES
+#include <openssl/evp.h>
+#endif
+
 #ifdef  S_IFLNK
 #define SAVE_LINKS
 #endif
@@ -245,7 +250,7 @@
   #endif
 #endif
 
-#if !defined(BIG_ENDIAN) && defined(_WIN_ALL) || defined(__i386__) || defined(__x86_64__)
+#if !defined(BIG_ENDIAN) && defined(_WIN_ALL) || !defined(__STRICT_ALIGNMENT)
 // Allow not aligned integer access, increases speed in some operations.
 #define ALLOW_MISALIGNED
 #endif
