From ee5244137266e2945b596f63ce4f60cfef6cdaf3 Mon Sep 17 00:00:00 2001 From: dscho Date: Wed, 18 May 2005 08:12:28 +0000 Subject: hide strict ansi stuff if not explicitely turned on; actually use the socklen_t test from configure.ac --- libvncserver/main.c | 2 ++ libvncserver/rfbserver.c | 2 ++ libvncserver/vncauth.c | 8 +++++--- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'libvncserver') diff --git a/libvncserver/main.c b/libvncserver/main.c index 7c7bc3d..5cac343 100644 --- a/libvncserver/main.c +++ b/libvncserver/main.c @@ -10,7 +10,9 @@ * see GPL (latest version) for full details */ +#ifdef __STRICT_ANSI__ #define _BSD_SOURCE +#endif #include #include #include "private.h" diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c index 22bdc98..745589e 100644 --- a/libvncserver/rfbserver.c +++ b/libvncserver/rfbserver.c @@ -24,7 +24,9 @@ * USA. */ +#ifdef __STRICT_ANSI__ #define _BSD_SOURCE +#endif #include #include #include 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 +#endif #include #include #include @@ -32,9 +37,6 @@ #include #include -#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H -#include -#endif #ifdef LIBVNCSERVER_HAVE_SYS_STAT_H #include #endif -- cgit v1.2.3