Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Aug 2016 21:55:23 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303683 - head/include
Message-ID:  <201608022155.u72LtNaD040600@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Tue Aug  2 21:55:23 2016
New Revision: 303683
URL: https://svnweb.freebsd.org/changeset/base/303683

Log:
  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.

Modified:
  head/include/stdio.h

Modified: head/include/stdio.h
==============================================================================
--- head/include/stdio.h	Tue Aug  2 21:48:26 2016	(r303682)
+++ head/include/stdio.h	Tue Aug  2 21:55:23 2016	(r303683)
@@ -357,6 +357,7 @@ ssize_t	 getdelim(char ** __restrict, si
 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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608022155.u72LtNaD040600>