summaryrefslogtreecommitdiff
path: root/stdio-common/getline.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/getline.c')
-rw-r--r--stdio-common/getline.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index a8b91ec62a..77f77c2400 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -17,19 +17,15 @@
#include <stddef.h>
#include <stdio.h>
+#include "../libio/libioP.h"
#undef __getline
-#include "../libio/libioP.h"
-#undef ssize_t
-#define ssize_t _IO_ssize_t
-#define __getdelim _IO_getdelim
-
/* Like getdelim, but always looks for a newline. */
ssize_t
__getline (char **lineptr, size_t *n, FILE *stream)
{
- return __getdelim (lineptr, n, '\n', stream);
+ return _IO_getdelim (lineptr, n, '\n', stream);
}
weak_alias (__getline, getline)