patch-os_hpp 812 B

1234567891011121314151617181920212223242526272829303132
  1. $OpenBSD: patch-os_hpp,v 1.12 2015/04/03 11:58:51 naddy Exp $
  2. --- os.hpp.orig Sun Feb 15 09:02:48 2015
  3. +++ os.hpp Fri Apr 3 13:57:04 2015
  4. @@ -137,6 +137,7 @@
  5. #endif
  6. #endif
  7. #if defined(__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined(__APPLE__)
  8. +#include <machine/endian.h>
  9. #endif
  10. #include <pwd.h>
  11. #include <grp.h>
  12. @@ -156,6 +157,10 @@
  13. #include <locale.h>
  14. +#ifdef OPENSSL_AES
  15. +#include <openssl/evp.h>
  16. +#endif
  17. +
  18. #ifdef S_IFLNK
  19. #define SAVE_LINKS
  20. #endif
  21. @@ -242,7 +247,7 @@
  22. #endif
  23. #endif
  24. -#if !defined(BIG_ENDIAN) && defined(_WIN_ALL) || defined(__i386__) || defined(__x86_64__)
  25. +#if !defined(BIG_ENDIAN) && defined(_WIN_ALL) || !defined(__STRICT_ALIGNMENT)
  26. // Allow not aligned integer access, increases speed in some operations.
  27. #define ALLOW_MISALIGNED
  28. #endif