From 3c170bb2f9c6a8a9c77213c94074d27ba09c037e Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Thu, 8 Mar 2018 22:59:04 +0100 Subject: [PATCH] fix mac linker --- libs/handle.c | 2 +- libs/handle.h | 2 +- plugin_manager.c | 1 - plugin_manager.h | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/handle.c b/libs/handle.c index 117993d..0666f10 100644 --- a/libs/handle.c +++ b/libs/handle.c @@ -1,5 +1,5 @@ #include "handle.h" - +config_t server_config; #ifdef USE_OPENSSL int usessl() { diff --git a/libs/handle.h b/libs/handle.h index 30d443c..b3ac433 100644 --- a/libs/handle.h +++ b/libs/handle.h @@ -47,7 +47,7 @@ typedef struct { char* sslkey; #endif }config_t; -extern config_t server_config; +//extern config_t server_config; typedef struct{ int sock; void* ssl; diff --git a/plugin_manager.c b/plugin_manager.c index a0ee0d6..1c959b9 100644 --- a/plugin_manager.c +++ b/plugin_manager.c @@ -3,7 +3,6 @@ * Plugin table to store the loaded plugin */ static struct plugin_entry *plugin_table[HASHSIZE]; -config_t server_config; /** * Locate a plugin in the plugin table diff --git a/plugin_manager.h b/plugin_manager.h index 58b4a5b..466464f 100644 --- a/plugin_manager.h +++ b/plugin_manager.h @@ -9,7 +9,7 @@ struct plugin_entry { char *pname; void *handle; }; - +extern config_t server_config; /* lookup: look for s in hashtab */ struct plugin_entry *plugin_lookup(char *s); /* install: put (name, defn) in hashtab */