X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Fcommon.h;h=db1b4650fc212258257be6631e32fc83d391e597;hp=cf4c5a71b9ac484a52be4cb2b6975434afd6922e;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=22813e1a6a3d059efc67975893df985052661a7a diff --git a/src/daemon/common.h b/src/daemon/common.h index cf4c5a71..db1b4650 100644 --- a/src/daemon/common.h +++ b/src/daemon/common.h @@ -289,6 +289,9 @@ int timeval_cmp(struct timeval tv0, struct timeval tv1, struct timeval *delta); int check_create_dir(const char *file_orig); #ifdef HAVE_LIBKSTAT +#if HAVE_KSTAT_H +#include +#endif int get_kstat(kstat_t **ksp_ptr, char *module, int instance, char *name); long long get_kstat_value(kstat_t *ksp, char *name); #endif @@ -316,7 +319,7 @@ int format_name(char *ret, int ret_len, const char *hostname, format_name(ret, ret_len, (vl)->host, (vl)->plugin, (vl)->plugin_instance, \ (vl)->type, (vl)->type_instance) int format_values(char *ret, size_t ret_len, const data_set_t *ds, - const value_list_t *vl, _Bool store_rates); + const value_list_t *vl, bool store_rates); int parse_identifier(char *str, char **ret_host, char **ret_plugin, char **ret_plugin_instance, char **ret_type, @@ -383,12 +386,10 @@ int strtogauge(const char *string, gauge_t *ret_value); int strarray_add(char ***ret_array, size_t *ret_array_len, char const *str); void strarray_free(char **array, size_t array_len); -#ifdef HAVE_SYS_CAPABILITY_H /** Check if the current process benefits from the capability passed in * argument. Returns zero if it does, less than zero if it doesn't or on error. * See capabilities(7) for the list of possible capabilities. * */ int check_capability(int arg); -#endif /* HAVE_SYS_CAPABILITY_H */ #endif /* COMMON_H */