about summary refs log tree commit diff
path: root/login/getutline.c
diff options
context:
space:
mode:
Diffstat (limited to 'login/getutline.c')
-rw-r--r--login/getutline.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/login/getutline.c b/login/getutline.c
index c9dcd227a5..a10c256c42 100644
--- a/login/getutline.c
+++ b/login/getutline.c
@@ -17,10 +17,11 @@
 
 #include <stdlib.h>
 #include <utmp.h>
+#include <set-freeres.h>
 
 
 /* Local buffer to store the result.  */
-libc_freeres_ptr (static struct utmp *buffer);
+static struct utmp *buffer;
 
 
 struct utmp *
@@ -41,3 +42,5 @@ __getutline (const struct utmp *line)
 }
 libc_hidden_def (__getutline)
 weak_alias (__getutline, getutline)
+
+weak_alias (buffer, __libc_getutline_freemem_ptr)