projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/utils_mount.c: Add code path for HAVE_GETMNTENT_R.
[collectd.git]
/
src
/
utils_mount.c
diff --git
a/src/utils_mount.c
b/src/utils_mount.c
index
87f26df
..
00527ad
100644
(file)
--- 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);
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!"
#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!"
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
#elif HAVE_ONE_GETMNTENT
new = cu_mount_getmntent();
#else