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/rfbproto.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libvncclient/rfbproto.c') 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__ -- cgit v1.2.1