bin/memaslap: fix build
authorMichael Wallner <mike@php.net>
Mon, 17 Aug 2020 09:03:05 +0000 (11:03 +0200)
committerMichael Wallner <mike@php.net>
Mon, 17 Aug 2020 09:03:05 +0000 (11:03 +0200)
src/bin/memaslap.c
src/bin/ms_memslap.h

index dc4113502398322b803f3611a6985acc590e3318..c94ead2df39f2c60678cdf2ae3b73a4d158407c6 100644 (file)
 #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."
index 9575a8107f952f6315bdca4121982919d8edeb28..72af301af9d53eb1035f23a5051cb0b58871e235 100644 (file)
@@ -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
 }