From 793adba0379cb8704d5254625834eda2156eb472 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 17 Aug 2020 11:03:05 +0200 Subject: [PATCH] bin/memaslap: fix build --- src/bin/memaslap.c | 9 +++++++++ src/bin/ms_memslap.h | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) 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 } -- 2.30.2