about summary refs log tree commit diff
path: root/pwd/fgetpwent.c
diff options
context:
space:
mode:
Diffstat (limited to 'pwd/fgetpwent.c')
-rw-r--r--pwd/fgetpwent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pwd/fgetpwent.c b/pwd/fgetpwent.c
index f069aa6f0c..b7864d263a 100644
--- a/pwd/fgetpwent.c
+++ b/pwd/fgetpwent.c
@@ -20,12 +20,13 @@
 #include <pwd.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <set-freeres.h>
 
 
 /* We need to protect the dynamic buffer handling.  */
 __libc_lock_define_initialized (static, lock);
 
-libc_freeres_ptr (static char *buffer);
+static char *buffer;
 
 /* Read one entry from the given stream.  */
 struct passwd *
@@ -82,3 +83,5 @@ fgetpwent (FILE *stream)
 
   return result;
 }
+
+weak_alias (buffer, __libc_fgetpwent_freemem_ptr)