X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconn.h;fp=src%2Fngircd%2Fconn.h;h=869477f091f69f2f9ed2d7f6b40dbb8c7109a85b;hp=c642541f07ce486b712f5a3b0e719a438d9ea8da;hb=f27827d7937375b5348107ca7427abf74c9eff3d;hpb=9c5e42458ea8dc2aa8db5f122aaa4296d31df67b diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index c642541f..869477f0 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -105,9 +105,17 @@ typedef struct _Connection #endif } CONNECTION; -GLOBAL CONNECTION *My_Connections; -GLOBAL CONN_ID Pool_Size; -GLOBAL long WCounter; + +#ifdef CONN_MODULE_GLOBAL_INIT +CONNECTION *My_Connections; +CONN_ID Pool_Size; +long WCounter; +#else +extern CONNECTION *My_Connections; +extern CONN_ID Pool_Size; +extern long WCounter; +#endif + #define CONNECTION2ID(x) (long)(x - My_Connections)