summaryrefslogtreecommitdiffstats
path: root/libvncserver/vncauth.c
diff options
context:
space:
mode:
authordscho <dscho>2005-05-18 08:12:28 +0000
committerdscho <dscho>2005-05-18 08:12:28 +0000
commitee5244137266e2945b596f63ce4f60cfef6cdaf3 (patch)
treec04ef01921e633e910f6fdafa7ad335c53950b1e /libvncserver/vncauth.c
parenta5524005d6c9f34facb3ff0aabced4e76fe314b0 (diff)
downloadlibtdevnc-ee5244137266e2945b596f63ce4f60cfef6cdaf3.tar.gz
libtdevnc-ee5244137266e2945b596f63ce4f60cfef6cdaf3.zip
hide strict ansi stuff if not explicitely turned on; actually use the socklen_t test from configure.ac
Diffstat (limited to 'libvncserver/vncauth.c')
-rw-r--r--libvncserver/vncauth.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libvncserver/vncauth.c b/libvncserver/vncauth.c
index 4c81d30..b8ee288 100644
--- a/libvncserver/vncauth.c
+++ b/libvncserver/vncauth.c
@@ -21,8 +21,13 @@
* vncauth.c - Functions for VNC password management and authentication.
*/
+#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#define _POSIX_SOURCE
+#endif
+#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -32,9 +37,6 @@
#include <string.h>
#include <math.h>
-#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
#ifdef LIBVNCSERVER_HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif