conditionally include <endian.h>, <machine/endian.h>
authorewt <devnull@localhost>
Wed, 25 Sep 1996 19:14:52 +0000 (19:14 +0000)
committerewt <devnull@localhost>
Wed, 25 Sep 1996 19:14:52 +0000 (19:14 +0000)
CVS patchset: 1049
CVS date: 1996/09/25 19:14:52

lib/md5.c
lib/oldheader.c

index 8d5eaab..17dcb77 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
  * needed on buffers full of bytes, and then call MD5Final, which
  * will fill a supplied 16-byte array with the digest.
  */
-#include <string.h>            /* for memcpy() */
+
+#if defined HAVE_ENDIAN_H
 #include <endian.h>
+#elif defined HAVE_MACHINE_ENDIAN_H
+#include <machine/endian.h>
+#endif
+
+#include <string.h>            /* for memcpy() */
 #include "md5.h"
 
 void byteReverse(unsigned char *buf, unsigned longs);
index b90ca63..bcc9712 100644 (file)
@@ -1,4 +1,9 @@
-#include <endian.h>
+#if defined HAVE_ENDIAN_H
+# include <endian.h>
+#else defined HAVE_MACHINE_ENDIAN_H
+# include <machine/endian.h>
+#endif
+
 #include <errno.h>
 #include <fcntl.h>
 #include <netinet/in.h>