Make sure that the 'config' variable is correctly defined and declared
for monolithic as well as non-monolithic biuld. More work is probably needed in this area. PR: 144
This commit is contained in:
parent
dd2b7b5c12
commit
b61cd4fff2
2 changed files with 3 additions and 1 deletions
|
@ -92,8 +92,10 @@ int WIN32_rename(char *oldname,char *newname);
|
|||
#define MAIN(a,v) main(a,v)
|
||||
|
||||
#ifndef NON_MAIN
|
||||
LHASH *config=NULL;
|
||||
BIO *bio_err=NULL;
|
||||
#else
|
||||
extern LHASH *config;
|
||||
extern BIO *bio_err;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -77,11 +77,11 @@ static unsigned long MS_CALLBACK hash(FUNCTION *a);
|
|||
static int MS_CALLBACK cmp(FUNCTION *a,FUNCTION *b);
|
||||
static LHASH *prog_init(void );
|
||||
static int do_cmd(LHASH *prog,int argc,char *argv[]);
|
||||
LHASH *config=NULL;
|
||||
char *default_config_file=NULL;
|
||||
|
||||
/* Make sure there is only one when MONOLITH is defined */
|
||||
#ifdef MONOLITH
|
||||
LHASH *config=NULL;
|
||||
BIO *bio_err=NULL;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue