Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jul 2017 14:42:20 -0400
From:      Chris Ross <cross+freebsd@distal.com>
To:        freebsd-stable@freebsd.org
Subject:   Compile-time check for clock_nanosleep()
Message-ID:  <BC299EA0-EFE3-4F44-BBED-8D0D18C632D4@distal.com>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BC299EA0-EFE3-4F44-BBED-8D0D18C632D4>