aboutsummaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2016-08-02 21:55:23 +0000
committerWarner Losh <imp@FreeBSD.org>2016-08-02 21:55:23 +0000
commit08ed5b80daaae5cfb887b8e960dde7ce0b1eaae2 (patch)
treedb432570ab38214eb4f025c7ddd439c5577660fa /include/stdio.h
parentbfbeda91feb33b0a67ce1b738ee89e279c26d9df (diff)
downloadsrc-08ed5b80daaae5cfb887b8e960dde7ce0b1eaae2.tar.gz
src-08ed5b80daaae5cfb887b8e960dde7ce0b1eaae2.zip
tools/build looks for _WITH_GETLINE in /usr/include/stdio.h to see if
we need to include it in -legacy or not. Since the ifdef was removed, this broke building 10.x and older source trees on -current. Restore just enough of _WITH_GETLINE to allow these older source trees to still build and properly omit getline() from their -legacy library.
Notes
Notes: svn path=/head/; revision=303683
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 4ea9d2a18b63..75c265485f1b 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -357,6 +357,7 @@ ssize_t getdelim(char ** __restrict, size_t * __restrict, int,
FILE *open_memstream(char **, size_t *);
int renameat(int, const char *, int, const char *);
int vdprintf(int, const char * __restrict, __va_list);
+/* _WITH_GETLINE to allow pre 11 sources to build on 11+ systems */
ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
int dprintf(int, const char * __restrict, ...);
#endif /* __POSIX_VISIBLE >= 200809 */