Skip to content

Commit

Permalink
Bug 98929 - Use proper endian.h for FreeBSD
Browse files Browse the repository at this point in the history
Patch by Jason E Hale <jhale@freebsd.org>
  • Loading branch information
hfiguiere committed Dec 2, 2016
1 parent d57b608 commit f31e1f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demo/ppmload.c
Expand Up @@ -30,6 +30,8 @@
# include <machine/endian.h>
# include <libkern/OSByteOrder.h>
# define htobe16(x) OSSwapHostToBigInt16(x)
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
# include <sys/endian.h>
#else
# include <endian.h>
#endif
Expand Down

0 comments on commit f31e1f8

Please sign in to comment.