From 168fa12cd66705fe0525070400fdc3a4f75159e8 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Fri, 9 Sep 2011 10:58:47 -0700 Subject: [PATCH] Misc fixes for build found on a few platforms. --- libtest/is_local.hpp | 2 ++ libtest/is_pid.hpp | 2 ++ libtest/stats.h | 1 + support/libmemcached.spec.in | 1 + 4 files changed, 6 insertions(+) diff --git a/libtest/is_local.hpp b/libtest/is_local.hpp index 30da3082..b3d07729 100644 --- a/libtest/is_local.hpp +++ b/libtest/is_local.hpp @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#pragma once + namespace libtest { LIBTEST_API diff --git a/libtest/is_pid.hpp b/libtest/is_pid.hpp index a4539bc0..aba66d69 100644 --- a/libtest/is_pid.hpp +++ b/libtest/is_pid.hpp @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#pragma once + static inline bool is_pid_valid(const pid_t pid) { return (pid > 1) ? true : false; diff --git a/libtest/stats.h b/libtest/stats.h index 3224d40d..7e7cdd07 100644 --- a/libtest/stats.h +++ b/libtest/stats.h @@ -21,6 +21,7 @@ #pragma once + struct Stats { int32_t collection_success; int32_t collection_skipped; diff --git a/support/libmemcached.spec.in b/support/libmemcached.spec.in index dedb2497..98cb0b91 100644 --- a/support/libmemcached.spec.in +++ b/support/libmemcached.spec.in @@ -262,6 +262,7 @@ you will need to install %{name}-devel. %{_mandir}/man3/memcached_stat.3.gz %{_mandir}/man3/memcached_stat_execute.3.gz %{_mandir}/man3/memcached_stat_get_keys.3.gz +%{_mandir}/man3/memcached_last_error_message.3.gz %{_mandir}/man3/memcached_stat_get_value.3.gz %{_mandir}/man3/memcached_stat_servername.3.gz %{_mandir}/man3/memcached_strerror.3.gz -- 2.30.2