]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn.h
Unbreak GCC 10 (-fno-common) build
[ngircd-alex.git] / src / ngircd / conn.h
index c642541f07ce486b712f5a3b0e719a438d9ea8da..869477f091f69f2f9ed2d7f6b40dbb8c7109a85b 100644 (file)
@@ -105,9 +105,17 @@ typedef struct _Connection
 #endif
 } 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)
 
 
 #define CONNECTION2ID(x) (long)(x - My_Connections)