diff options
-rw-r--r-- | include/Support/DataTypes.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/Support/DataTypes.h b/include/Support/DataTypes.h index 063c464457..473b5b9f38 100644 --- a/include/Support/DataTypes.h +++ b/include/Support/DataTypes.h @@ -23,7 +23,11 @@ #include <inttypes.h> #ifdef __linux__ -#include <endian.h> +# include <endian.h> +#else +#if (BSD >= 199103) +# include <machine/endian.h> +#endif #endif #ifdef __sparc__ |