patch-include_osl_endian_h 587 B

12345678910111213141516171819
  1. $OpenBSD: patch-include_osl_endian_h,v 1.1 2016/09/04 12:02:49 robert Exp $
  2. --- include/osl/endian.h.orig.port Sat Sep 3 17:21:44 2016
  3. +++ include/osl/endian.h Sat Sep 3 17:40:23 2016
  4. @@ -58,6 +58,14 @@ extern "C" {
  5. # elif defined _BIG_ENDIAN
  6. # define OSL_BIGENDIAN
  7. # endif
  8. +#elif defined OPENBSD
  9. +# include <sys/param.h>
  10. +# include <machine/endian.h>
  11. +# if defined _LITTLE_ENDIAN
  12. +# define OSL_LITENDIAN
  13. +# elif defined _BIG_ENDIAN
  14. +# define OSL_BIGENDIAN
  15. +# endif
  16. #elif defined AIX
  17. # include <sys/machine.h>
  18. # if BYTE_ORDER == LITTLE_ENDIAN