Source
--- cuneiform_src/Kern/rstr/src/perc.c.orig 2011-05-31 18:45:31.000000000 +0200
+++ cuneiform_src/Kern/rstr/src/perc.c 2011-05-31 18:46:11.000000000 +0200
*/
#if defined(HAVE_ENDIAN_H)
-#include <endian.h>
-#define swapbytes(a) do { (a) = htobe32(a); } while (0)
+#include <machine/endian.h>
+#define swapbytes(a) do { (a) = htonl(a); } while (0)
#elif defined(WIN32) && defined(_MSC_VER) && (_MSC_VER > 800)
#define swapbytes(a) __asm { \