summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-21 20:09:59 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-21 20:09:59 +0000
commita8aa4c64466559223130206323ef1b9f0b6b8b43 (patch)
tree88d0614f31740458a2806c448257ac2755038c48
parent54e059a46b7f9775dbafa42fbb2b61d1f9dfb5f6 (diff)
Wrap getline() inside #ifdef __USE_GNU
-rw-r--r--include/stdio.h2
1 files changed, 2 insertions, 0 deletions
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. */