mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 16:58:22 +01:00
fix mac linker
This commit is contained in:
parent
0733bec252
commit
3c170bb2f9
@ -1,5 +1,5 @@
|
|||||||
#include "handle.h"
|
#include "handle.h"
|
||||||
|
config_t server_config;
|
||||||
#ifdef USE_OPENSSL
|
#ifdef USE_OPENSSL
|
||||||
int usessl()
|
int usessl()
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user