summaryrefslogtreecommitdiff
path: root/misc/mntent.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mntent.c')
-rw-r--r--misc/mntent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/mntent.c b/misc/mntent.c
index 4a1c5444cf..61dc63f253 100644
--- a/misc/mntent.c
+++ b/misc/mntent.c
@@ -19,6 +19,7 @@
#include <mntent.h>
#include <stdlib.h>
#include <allocate_once.h>
+#include <set-freeres.h>
struct mntent_buffer
{
@@ -28,7 +29,7 @@ struct mntent_buffer
/* We don't want to allocate the static buffer all the time since it
is not always used (in fact, rather infrequently). */
-libc_freeres_ptr (static void *mntent_buffer);
+static void *mntent_buffer;
static void *
allocate (void *closure)
@@ -56,3 +57,5 @@ getmntent (FILE *stream)
return __getmntent_r (stream, &buffer->m,
buffer->buffer, sizeof (buffer->buffer));
}
+
+weak_alias (mntent_buffer, __libc_mntent_freemem_ptr)