X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_mount_test.c;h=e8f3009423706622988853b351932d730941d463;hp=76fc8d4a35f41dda4dfe1181dbcab78c5f0e229a;hb=a9e50e9e30ecde17e167e271060c8183bfcbf407;hpb=fb0cc621d4357bbe4a9dc36c7f055f46257ce57c diff --git a/src/utils_mount_test.c b/src/utils_mount_test.c index 76fc8d4a..e8f30094 100644 --- a/src/utils_mount_test.c +++ b/src/utils_mount_test.c @@ -30,6 +30,10 @@ #include "testing.h" #include "utils_mount.h" +#if HAVE_KSTAT_H +#include +#endif + #if HAVE_LIBKSTAT kstat_ctl_t *kc; #endif /* HAVE_LIBKSTAT */ @@ -75,7 +79,7 @@ DEF_TEST(cu_mount_checkoption) { OK(NULL == cu_mount_checkoption(line_bool, "tw", 1)); OK(NULL == cu_mount_checkoption(line_bool, "thr", 1)); - return (0); + return 0; } DEF_TEST(cu_mount_getoptionvalue) { char line_opts[] = "foo=one,bar=two,qux=three"; @@ -100,7 +104,7 @@ DEF_TEST(cu_mount_getoptionvalue) { OK(NULL == (v = cu_mount_getoptionvalue(line_bool, "four"))); sfree(v); - return (0); + return 0; } int main(void) {