freebsd-ports/graphics/jpeg-turbo/files/patch-md5_md5.c
Antoine Brodin 163ab3de6a - Update to 1.4.0
- Allow building on non i386/amd64 [1]

PR:		200095
Approved by:	maintainer timeout (3 weeks)
Tested on:	ia64 and sparc64 [1]
2015-06-01 19:13:39 +00:00

11 lines
311 B
C

--- md5/md5.c.orig 2014-08-30 13:52:09 UTC
+++ md5/md5.c
@@ -45,6 +45,8 @@ static void MD5Transform(unsigned int [4
#include <libkern/OSByteOrder.h>
#define le32toh(x) OSSwapLittleToHostInt32(x)
#define htole32(x) OSSwapHostToLittleInt32(x)
+#elif defined(__FreeBSD__)
+#include <sys/endian.h>
#endif
/*