summaryrefslogtreecommitdiffstats
path: root/common/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/md5.c')
-rw-r--r--common/md5.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/md5.c b/common/md5.c
index c3e3fd7..13e47a8 100644
--- a/common/md5.c
+++ b/common/md5.c
@@ -27,12 +27,11 @@
# include <string.h>
#include "md5.h"
+#include "rfb/rfbconfig.h"
-/* #ifdef _LIBC */
-# include <endian.h>
-# if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef LIBVNCSERVER_WORDS_BIGENDIAN
# define WORDS_BIGENDIAN 1
-# endif
+#endif
/* We need to keep the namespace clean so define the MD5 function
protected using leading __ . */
# define md5_init_ctx __md5_init_ctx