From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id b90c93e2 for ; Thu, 8 Feb 2018 14:31:47 -0500 (EST) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 036635A9F12; Thu, 8 Feb 2018 19:31:47 +0000 (UTC) Date: Thu, 8 Feb 2018 19:31:46 +0000 From: Brooks Davis To: tech@mandoc.bsd.lv Subject: small for FreeBSD Message-ID: <20180208193146.GA87404@spindle.one-eyed-alien.net> X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In our local tree we have this change to work around the fact that FreeBSD doesn't provide a getline() prototype unless _WITH_GETLINE is defined before stdio.h is included. It would be nice if some variant of this could make it in to mandoc. Thanks, Brooks commit f1e1737d27fe77dc6f7709aee31911e30684d653 Author: Robert N. M. Watson Date: Wed Aug 16 22:58:19 2017 +0100 getline(3) now requires defining _WITH_GETLINE before including stdio.h. Otherwise, getline() comes without function prototypes, which is not OK on CHERI. =20 (Upstreaming candidate.) diff --git a/contrib/mdocml/mandocdb.c b/contrib/mdocml/mandocdb.c index b9e4fb1c813..4f064d88fde 100644 --- a/contrib/mdocml/mandocdb.c +++ b/contrib/mdocml/mandocdb.c @@ -40,6 +40,7 @@ #endif #include #include +#define _WITH_GETLINE #include #include #include --opJtzjQTFsWo+cga Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJafKWiAAoJEKzQXbSebgfAQW4H+gI6cjLKTx8gsKaPGBR2+OhZ t2VSpR/K58RoXCvYx9L/DyNc82uGplDF62CBHNQxbU3q7jiHsthmF8SlNQy/6r3Z 3YjHnGc6j/A2fQeb8fwMXnnyztoWctuBe5EC5zNJfESMGQAN7F17UpIOtNNzKWrT bkmc3fdzqPcxscYPOmA7I2H1zXpa9MsWcxXdZfljDX72iPcaktyaBEp6rs6sdi/n 6xgq8Izgk6TT+1BxKdErAjP6Ae6hH9M704tqCdM2bYiIxAiQIdpFJvMTOFfNIPko ZomfhJicNVOMoSgQtOy0b4n3bccEIFAoTo9PQnxk1bPBcvxzf57slM2pH5x0EjM= =xcle -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga-- -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv