From: Florian Forster Date: Thu, 18 Oct 2018 16:23:54 +0000 (+0200) Subject: src/utils_mount.c: Add code path for HAVE_GETMNTENT_R. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b24c4cc5f61e67789246241727a4402caf815500;p=collectd.git src/utils_mount.c: Add code path for HAVE_GETMNTENT_R. I don't know when this got lost or why it is triggering now, but the build fails on my machine without this now. --- diff --git a/src/utils_mount.c b/src/utils_mount.c index 87f26df0..00527ad0 100644 --- a/src/utils_mount.c +++ b/src/utils_mount.c @@ -526,8 +526,8 @@ static cu_mount_t *cu_mount_gen_getmntent(void) { fclose(fp); return (first); -} /* static cu_mount_t *cu_mount_gen_getmntent (void) */ -/* #endif HAVE_TWO_GETMNTENT || HAVE_GEN_GETMNTENT || HAVE_SUN_GETMNTENT */ +} +/* #endif HAVE_{TWO,GEN,SUN}_GETMNTENT */ #elif HAVE_SEQ_GETMNTENT #warn "This version of `getmntent' hat not yet been implemented!" @@ -664,6 +664,8 @@ cu_mount_t *cu_mount_getlist(cu_mount_t **list) { new = cu_mount_gen_getmntent(); #elif HAVE_SEQ_GETMNTENT #error "This version of `getmntent' hat not yet been implemented!" +#elif HAVE_GETMNTENT_R + new = cu_mount_getmntent(); #elif HAVE_ONE_GETMNTENT new = cu_mount_getmntent(); #else