mirror of
https://github.com/osmarks/ngircd.git
synced 2025-06-22 08:14:09 +00:00
Unbreak GCC 10 (-fno-common) build
This commit is contained in:
parent
9c5e42458e
commit
f27827d793
@ -10,6 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define CONN_MODULE
|
#define CONN_MODULE
|
||||||
|
#define CONN_MODULE_GLOBAL_INIT
|
||||||
|
|
||||||
#include "portab.h"
|
#include "portab.h"
|
||||||
|
|
||||||
|
@ -105,9 +105,17 @@ typedef struct _Connection
|
|||||||
#endif
|
#endif
|
||||||
} CONNECTION;
|
} CONNECTION;
|
||||||
|
|
||||||
GLOBAL CONNECTION *My_Connections;
|
|
||||||
GLOBAL CONN_ID Pool_Size;
|
#ifdef CONN_MODULE_GLOBAL_INIT
|
||||||
GLOBAL long WCounter;
|
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)
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
* Please read the file COPYING, README and AUTHORS for more information.
|
* Please read the file COPYING, README and AUTHORS for more information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define GLOBAL_INIT
|
||||||
#include "portab.h"
|
#include "portab.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -102,7 +102,11 @@ typedef unsigned char bool;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef GLOBAL
|
#undef GLOBAL
|
||||||
|
#ifdef GLOBAL_INIT
|
||||||
#define GLOBAL
|
#define GLOBAL
|
||||||
|
#else
|
||||||
|
#define GLOBAL extern
|
||||||
|
#endif
|
||||||
|
|
||||||
/* SPLint */
|
/* SPLint */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user