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 --- libvncclient/listen.c | 2 ++ libvncclient/rfbproto.c | 2 ++ libvncclient/sockets.c | 2 ++ libvncclient/vncviewer.c | 2 ++ 4 files changed, 8 insertions(+) (limited to 'libvncclient') diff --git a/libvncclient/listen.c b/libvncclient/listen.c index 7e0ed1d..7347a27 100644 --- a/libvncclient/listen.c +++ b/libvncclient/listen.c @@ -21,7 +21,9 @@ * listen.c - listen for incoming connections */ +#ifdef __STRICT_ANSI__ #define _BSD_SOURCE +#endif #include #include #ifdef __MINGW32__ diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 72c06a1..211a478 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -23,8 +23,10 @@ * rfbproto.c - functions to deal with client side of RFB protocol. */ +#ifdef __STRICT_ANSI__ #define _BSD_SOURCE #define _POSIX_SOURCE +#endif #include #include #ifndef __MINGW32__ diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c index 977912d..6ee5a9d 100644 --- a/libvncclient/sockets.c +++ b/libvncclient/sockets.c @@ -21,7 +21,9 @@ * sockets.c - functions to deal with sockets. */ +#ifdef __STRICT_ANSI__ #define _BSD_SOURCE +#endif #include #include #include diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c index 4427335..87c708d 100644 --- a/libvncclient/vncviewer.c +++ b/libvncclient/vncviewer.c @@ -21,8 +21,10 @@ * vncviewer.c - the Xt-based VNC viewer. */ +#ifdef __STRICT_ANSI__ #define _BSD_SOURCE #define _POSIX_SOURCE +#endif #include #include #include -- cgit v1.2.1