summaryrefslogtreecommitdiffstats
path: root/libvncclient
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2017-09-02 17:20:58 +0200
committerChristian Beier <dontmind@freeshell.org>2017-09-02 18:01:52 +0200
commitdf11e806a31ec0fe0f3f58917ed1e98769adb910 (patch)
treeff3c45fe1009d5cc245ecabfea99af128a70537a /libvncclient
parent666f37efc08c20fa37b6a8ca5967b066118f56aa (diff)
downloadlibtdevnc-df11e806a31ec0fe0f3f58917ed1e98769adb910.tar.gz
libtdevnc-df11e806a31ec0fe0f3f58917ed1e98769adb910.zip
Move HAVE_SASL #ifdefs into header file to have less LOC
Diffstat (limited to 'libvncclient')
-rw-r--r--libvncclient/rfbproto.c3
-rw-r--r--libvncclient/rfbsasl.h4
-rw-r--r--libvncclient/sockets.c3
3 files changed, 4 insertions, 6 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c
index 27589b8..572af9d 100644
--- a/libvncclient/rfbproto.c
+++ b/libvncclient/rfbproto.c
@@ -66,10 +66,7 @@
#include <gcrypt.h>
#endif
-#ifdef LIBVNCSERVER_HAVE_SASL
#include "rfbsasl.h"
-#endif /* LIBVNCSERVER_HAVE_SASL */
-
#include "minilzo.h"
#include "tls.h"
diff --git a/libvncclient/rfbsasl.h b/libvncclient/rfbsasl.h
index 8231096..2936364 100644
--- a/libvncclient/rfbsasl.h
+++ b/libvncclient/rfbsasl.h
@@ -20,6 +20,8 @@
* USA.
*/
+#ifdef LIBVNCSERVER_HAVE_SASL
+
#include <rfb/rfbclient.h>
/*
@@ -32,4 +34,6 @@ rfbBool HandleSASLAuth(rfbClient *client);
*/
int ReadFromSASL(rfbClient* client, char *out, unsigned int n);
+#endif /* LIBVNCSERVER_HAVE_SASL */
+
#endif /* RFBSASL_H */
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c
index 8ed51a5..2d505c7 100644
--- a/libvncclient/sockets.c
+++ b/libvncclient/sockets.c
@@ -58,10 +58,7 @@
#include <netdb.h>
#endif
#include "tls.h"
-
-#ifdef LIBVNCSERVER_HAVE_SASL
#include "rfbsasl.h"
-#endif /* LIBVNCSERVER_HAVE_SASL */
#ifdef _MSC_VER
# define snprintf _snprintf