1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-05 22:19:47 +02:00

fix mac linker

This commit is contained in:
Xuan Sang LE 2018-03-08 22:59:04 +01:00
parent 0733bec252
commit 3c170bb2f9
4 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#include "handle.h" #include "handle.h"
config_t server_config;
#ifdef USE_OPENSSL #ifdef USE_OPENSSL
int usessl() int usessl()
{ {

View File

@ -47,7 +47,7 @@ typedef struct {
char* sslkey; char* sslkey;
#endif #endif
}config_t; }config_t;
extern config_t server_config; //extern config_t server_config;
typedef struct{ typedef struct{
int sock; int sock;
void* ssl; void* ssl;

View File

@ -3,7 +3,6 @@
* Plugin table to store the loaded plugin * Plugin table to store the loaded plugin
*/ */
static struct plugin_entry *plugin_table[HASHSIZE]; static struct plugin_entry *plugin_table[HASHSIZE];
config_t server_config;
/** /**
* Locate a plugin in the plugin table * Locate a plugin in the plugin table

View File

@ -9,7 +9,7 @@ struct plugin_entry {
char *pname; char *pname;
void *handle; void *handle;
}; };
extern config_t server_config;
/* lookup: look for s in hashtab */ /* lookup: look for s in hashtab */
struct plugin_entry *plugin_lookup(char *s); struct plugin_entry *plugin_lookup(char *s);
/* install: put (name, defn) in hashtab */ /* install: put (name, defn) in hashtab */