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 --- rfb/rfb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rfb') diff --git a/rfb/rfb.h b/rfb/rfb.h index 5866cd6..007c13c 100644 --- a/rfb/rfb.h +++ b/rfb/rfb.h @@ -45,6 +45,10 @@ extern "C" #include #endif +#ifndef LIBVNCSERVER_HAVE_SOCKLEN_T +typedef int socklen_t; +#endif + #ifdef LIBVNCSERVER_HAVE_LIBPTHREAD #include #if 0 /* debugging */ -- cgit v1.2.3