mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 01:01:06 +00:00
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.
This commit is contained in:
parent
bfbeda91fe
commit
08ed5b80da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303683
|
@ -357,6 +357,7 @@ ssize_t getdelim(char ** __restrict, size_t * __restrict, int,
|
||||||
FILE *open_memstream(char **, size_t *);
|
FILE *open_memstream(char **, size_t *);
|
||||||
int renameat(int, const char *, int, const char *);
|
int renameat(int, const char *, int, const char *);
|
||||||
int vdprintf(int, const char * __restrict, __va_list);
|
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);
|
ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
|
||||||
int dprintf(int, const char * __restrict, ...);
|
int dprintf(int, const char * __restrict, ...);
|
||||||
#endif /* __POSIX_VISIBLE >= 200809 */
|
#endif /* __POSIX_VISIBLE >= 200809 */
|
||||||
|
|
Loading…
Reference in a new issue