From owner-freebsd-stable@freebsd.org Mon Jul 3 18:42:44 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 210839ED3ED for ; Mon, 3 Jul 2017 18:42:44 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254::4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.pix.net", Issuer "Pix.Com Technologies LLC CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C32C27C406 for ; Mon, 3 Jul 2017 18:42:43 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from mail.distal.com (mail.distal.com [IPv6:2001:470:e24c:200:0:0:0:ae25]) (authenticated bits=0) by hydra.pix.net (8.16.0.19/8.15.2) with ESMTPSA id v63IgYXp076357 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 3 Jul 2017 14:42:42 -0400 (EDT) (envelope-from cross+freebsd@distal.com) Received: from [IPv6:2001:420:2710:1330:d063:146f:18a:849c] ([IPv6:2001:420:2710:1330:d063:146f:18a:849c]) (authenticated bits=0) by mail.distal.com (8.15.2/8.15.2) with ESMTPSA id v63IgWuP010033 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 3 Jul 2017 14:42:33 -0400 (EDT) (envelope-from cross+freebsd@distal.com) From: Chris Ross Content-Type: multipart/signed; boundary="Apple-Mail=_8544B760-7645-44DE-A461-511A47E79712"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Compile-time check for clock_nanosleep() Message-Id: Date: Mon, 3 Jul 2017 14:42:20 -0400 To: freebsd-stable@freebsd.org X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2017 18:42:44 -0000 --Apple-Mail=_8544B760-7645-44DE-A461-511A47E79712 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Some time ago, I ported a linux program that was using = clock_nanosleep(). I see now that the extra code I=E2=80=99d put in = isn=E2=80=99t needed anymore in 11-stable, as it appears this call was = added in 11.1. My question is, to properly protect these changes, what = is the best way to know at compile time, either (a) that that call is in = libc, or (b) that I=E2=80=99m compiling on FreeBSD 11.1 or later ? Thanks. - Chris --Apple-Mail=_8544B760-7645-44DE-A461-511A47E79712 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJZWpATAAoJEPFBDnXvoNg0p3EQAIJPCQMNsUvfSPRgMifSIHkV hKXH8QhP2KBQaLKhuAPZvzPjR3m4/WUiELh0r0Yi3vBS1KzWwP2bjEPFXFoqpXci IMsYHhmZXw/q8uCbksyTuP9om0jXoKyOfnapfd9s3WW0+29kRq+dXu7xBPZe/YyZ 2/y/T+yT7jI8nwxm2b5csoXfi4Ep7Hb9W/leGt5hJHFxjMUEim72A0KRMAIcdzzz btxEd20W5DQRSI5PGLs6M6Df9n6/s9DLvBv7v3OLcUq0gaTedebTvb77cbI4zn2A 7c/ucG2FGCW0Af6svpIuuHBm+ewsEueJyKqsuU51lTHC8NFHLc8kkcODOgyb20iy SfkK0RH36FrbcgOngL7D4MgL0obumovoSpHC2r6IYdEyb+CXF1L3q3beUY9UkBof OzJ1lcvj8TDBryg3+P0PVm8uFidpsgA9MDnWwg3Xl/EegBRKO6388sc01UncTVI+ bgwhzpBprgSZKU18LgnPH+dH0nj10QrqKFPyo53ZHlsBu+yRVTxjpl/mXAvIUo3A ToJ6nMzKqd1pU+5ITft7rnEchq73yHQ7m9I2aJDSAaEww/9UkSZnVMX4b4wClTr2 EjVcB44/diCNlPk3YrJXwiks+L7zu8G8wuGverdsEY0AnZXrb5YHIa/mZDo+iYKt E7OEJvXpiiJEgTVj9lo3 =3RYh -----END PGP SIGNATURE----- --Apple-Mail=_8544B760-7645-44DE-A461-511A47E79712--