From 475353c278b8a2e03735dc6b0db742abf6b92be5 Mon Sep 17 00:00:00 2001 From: Marcus Sundberg Date: Sat, 5 Feb 2000 15:59:39 +0000 Subject: [PATCH] typedef socklen_t here if it doesn't exist. --- common/common_quakedef.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/common_quakedef.h b/common/common_quakedef.h index 7d51b13..55ffac3 100644 --- a/common/common_quakedef.h +++ b/common/common_quakedef.h @@ -104,6 +104,14 @@ void VID_UnlockBuffer (void); # define vsnprintf _vsnprintf #endif +#ifndef HAVE_SOCKLEN_T +# ifdef HAVE_SIZE +typedef size_t socklen_t; +# else +typedef unsigned int socklen_t; +# endif +#endif + #define MAX_NUM_ARGVS 50