aboutsummaryrefslogtreecommitdiff
path: root/gshadow/fgetsgent.c
diff options
context:
space:
mode:
Diffstat (limited to 'gshadow/fgetsgent.c')
-rw-r--r--gshadow/fgetsgent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gshadow/fgetsgent.c b/gshadow/fgetsgent.c
index 68e69ef6f2..dc26b24b47 100644
--- a/gshadow/fgetsgent.c
+++ b/gshadow/fgetsgent.c
@@ -20,6 +20,7 @@
#include <gshadow.h>
#include <stdio.h>
#include <stdlib.h>
+#include <set-freeres.h>
/* A reasonable size for a buffer to start with. */
@@ -28,7 +29,7 @@
/* 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 shadow entry from the given stream. */
struct sgrp *
@@ -85,3 +86,5 @@ fgetsgent (FILE *stream)
return result;
}
+
+weak_alias (buffer, __libc_fgetsgent_freeres_ptr);