freebsd-ports/sysutils/isomd5sum/files/patch-md5.c
Edwin Groothuis a105f0e214 [New port] sysutils/isomd5sum: Implanting and checking checksums within an ISO9660 image.
Isomd5sum is a collection of utilities for implanting and
	checking MD5 checksums within an ISO9660 image. A checksum
	is implanted in an image using the implantisomd5 utility,
	and the corresponding checkisomd5 utility can be used to
	verify burned CDs are error-free. Also included is a Python
	extension for performing these tasks.

PR:		ports/125013
Submitted by:	Mykola Marzhan <delgod@portaone.com>
2008-07-05 11:59:08 +00:00

19 lines
567 B
C

--- ./md5.c.orig 2008-02-08 04:30:07.000000000 +0000
+++ ./md5.c 2008-06-17 17:05:34.000000000 +0000
@@ -20,13 +20,13 @@
*/
#include <string.h>
-#include <endian.h>
+#include <sys/endian.h>
#include "md5.h"
void MD5_Transform(uint32 *buf, uint32 const *in);
-#define IS_BIG_ENDIAN() (__BYTE_ORDER == __BIG_ENDIAN)
-#define IS_LITTLE_ENDIAN() (__BYTE_ORDER == __LITTLE_ENDIAN)
+#define IS_BIG_ENDIAN() (_BYTE_ORDER == _BIG_ENDIAN)
+#define IS_LITTLE_ENDIAN() (_BYTE_ORDER == _LITTLE_ENDIAN)
static void byteReverse(unsigned char *buf, unsigned longs);