From b24c4cc5f61e67789246241727a4402caf815500 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Oct 2018 18:23:54 +0200 Subject: [PATCH] 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. --- src/utils_mount.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.11.0