Skip to content

Commit

Permalink
Merge pull request #7 from krepver/gcc10
Browse files Browse the repository at this point in the history
Fix to build with gcc 10
  • Loading branch information
dvershinin committed Mar 22, 2023
2 parents fc91243 + ad4d2af commit 6b2c580
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion mtproto/mtproto-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion net/net-stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion vv/vv-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <assert.h>

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)
Expand Down

0 comments on commit 6b2c580

Please sign in to comment.