From: Michael Wallner Date: Mon, 17 Aug 2020 09:03:05 +0000 (+0200) Subject: bin/memaslap: fix build X-Git-Tag: 1.1.0-beta1~248 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=793adba0379cb8704d5254625834eda2156eb472;p=m6w6%2Flibmemcached bin/memaslap: fix build --- diff --git a/src/bin/memaslap.c b/src/bin/memaslap.c index dc411350..c94ead2d 100644 --- a/src/bin/memaslap.c +++ b/src/bin/memaslap.c @@ -32,6 +32,15 @@ #include "ms_setting.h" #include "ms_thread.h" +/* global structure */ +ms_global_t ms_global; + +/* global stats information structure */ +ms_stats_t ms_stats; + +/* global statistic structure */ +ms_statistic_t ms_statistic; + #define PROGRAM_NAME "memslap" #define PROGRAM_DESCRIPTION \ "Generates workload against memcached servers." diff --git a/src/bin/ms_memslap.h b/src/bin/ms_memslap.h index 9575a810..72af301a 100644 --- a/src/bin/ms_memslap.h +++ b/src/bin/ms_memslap.h @@ -118,13 +118,13 @@ typedef struct global } ms_global_t; /* global structure */ -ms_global_t ms_global; +extern ms_global_t ms_global; /* global stats information structure */ -ms_stats_t ms_stats; +extern ms_stats_t ms_stats; /* global statistic structure */ -ms_statistic_t ms_statistic; +extern ms_statistic_t ms_statistic; #ifdef __cplusplus }