X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fcommon.h;h=aae190916227a398d7ca338fce3ca3a5d569f873;hb=9c6c1bdb92537f307d245c52349d3f196ec4d33d;hp=59e99ec4fdc6fefb5f1f8f63d09b71034e0aa0ee;hpb=11fd0bc0ed5969e7f1fd218e77c905fe2f414023;p=collectd.git diff --git a/src/daemon/common.h b/src/daemon/common.h index 59e99ec4..aae19091 100644 --- a/src/daemon/common.h +++ b/src/daemon/common.h @@ -90,7 +90,7 @@ char *sstrerror(int errnum, char *buf, size_t buflen); * Zero upon success or non-zero if an error occurred. `errno' is set in this * case. */ -ssize_t sread(int fd, void *buf, size_t count); +int sread(int fd, void *buf, size_t count); /* * NAME @@ -109,7 +109,7 @@ ssize_t sread(int fd, void *buf, size_t count); * Zero upon success or non-zero if an error occurred. `errno' is set in this * case. */ -ssize_t swrite(int fd, const void *buf, size_t count); +int swrite(int fd, const void *buf, size_t count); /* * NAME @@ -282,6 +282,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