From a8aa4c64466559223130206323ef1b9f0b6b8b43 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 21 May 2001 20:09:59 +0000 Subject: Wrap getline() inside #ifdef __USE_GNU --- include/stdio.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/stdio.h') diff --git a/include/stdio.h b/include/stdio.h index f8bdfa12b..918546e01 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -324,6 +324,7 @@ extern char *fgets __P ((char *__restrict __s, int __n, extern char *gets __P ((char *__s)); +#ifdef __USE_GNU /* Read up to (and including) a DELIMITER from STREAM into *LINEPTR (and null-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *N characters of space. It is realloc'd as @@ -340,6 +341,7 @@ extern ssize_t getdelim __P ((char **__restrict __lineptr, extern ssize_t getline __P ((char **__restrict __lineptr, size_t *__restrict __n, FILE *__restrict __stream)); +#endif /* Write a string to STREAM. */ -- cgit v1.2.3