diff --git a/common/resolver.h b/common/resolver.h index 084cf08a..966ddc80 100644 --- a/common/resolver.h +++ b/common/resolver.h @@ -27,7 +27,7 @@ extern "C" { #endif -int kdb_hosts_loaded; +extern int kdb_hosts_loaded; int kdb_load_hosts (void); struct hostent *kdb_gethostbyname (const char *name); diff --git a/mtproto/mtproto-proxy.c b/mtproto/mtproto-proxy.c index 4d749e1b..528ac34d 100644 --- a/mtproto/mtproto-proxy.c +++ b/mtproto/mtproto-proxy.c @@ -409,7 +409,7 @@ int worker_id, workers, slave_mode, parent_pid; int pids[MAX_WORKERS]; long long get_queries; -long long http_queries; +extern long long http_queries; int pending_http_queries; long long active_rpcs, active_rpcs_created; diff --git a/net/net-stats.c b/net/net-stats.c index 0453d9bb..7ac4bba1 100644 --- a/net/net-stats.c +++ b/net/net-stats.c @@ -52,7 +52,7 @@ #include "engine/engine.h" -struct process_id PID; +extern struct process_id PID; extern int zheap_debug; long long queries_allocated; diff --git a/vv/vv-tree.c b/vv/vv-tree.c index d7c4987a..fa0eee39 100644 --- a/vv/vv-tree.c +++ b/vv/vv-tree.c @@ -21,7 +21,7 @@ #include -long long total_vv_tree_nodes; +extern long long total_vv_tree_nodes; #define SUFFIX2(a,b) a ## b #define SUFFIX(a,b) SUFFIX2(a,b)