summaryrefslogtreecommitdiffstats
path: root/common/md5.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2016-12-30 17:11:56 +0100
committerChristian Beier <dontmind@freeshell.org>2016-12-30 17:11:56 +0100
commitb7a7c4d120d145e11af0f3860e14be02e977d30d (patch)
treeec818f8c2916b90934ec63550467d702ea68f7b3 /common/md5.c
parent6b2fb4e3c8e6d3e5cf88cd2747dc3700d501b8a4 (diff)
downloadlibtdevnc-b7a7c4d120d145e11af0f3860e14be02e977d30d.tar.gz
libtdevnc-b7a7c4d120d145e11af0f3860e14be02e977d30d.zip
Fix building on OSX without SSL.
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