From: Monty Taylor Date: Fri, 2 Apr 2010 17:51:10 +0000 (-0700) Subject: Fixes build on FreeBSD. X-Git-Tag: 0.40~17^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=77688f0ea4e99869438e0e639d19881aee14d5dd;p=awesomized%2Flibmemcached Fixes build on FreeBSD. Non-static inline functions are not supported in C99. (which is what the error message should say) BUT - this function isn't in a header file, so being marked inline here is pointless (guessing copy-n-paste error) --- diff --git a/libmemcached/behavior.c b/libmemcached/behavior.c index 886457a5..0085e4f3 100644 --- a/libmemcached/behavior.c +++ b/libmemcached/behavior.c @@ -230,7 +230,7 @@ memcached_return_t memcached_behavior_set(memcached_st *ptr, return MEMCACHED_SUCCESS; } -inline bool _is_auto_eject_host(const memcached_st *ptr) +bool _is_auto_eject_host(const memcached_st *ptr) { return ptr->flags.auto_eject_hosts; }