This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: new trunk dependence on nanosleep()
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Tim Prince <tprince818 dot tp at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 12 Nov 2015 17:05:27 +0000
- Subject: Re: new trunk dependence on nanosleep()
- Authentication-results: sourceware.org; auth=none
- References: <5644C07E dot 5020900 at gmail dot com> <CAH6eHdSOHO=yJWMS+X-pQYdCsJ3L8i9G5Ax8FiUS_LtzR_9FeQ at mail dot gmail dot com>
On 12 November 2015 at 17:03, Jonathan Wakely wrote:
> On 12 November 2015 at 16:38, Tim Prince wrote:
>> I see that the current trunk chooses to configure so as to depend on a
>> compatible nanosleep() regardless of the ability of the target system to
>> support that (e.g. cygwin64). I haven't been able to see whether there
>> is a configure option or a prerequisites download installation to take
>> care of it.
>
> We've been using nanosleep there pretty much unchanged for about three years.
For the configure check see GLIBCXX_ENABLE_LIBSTDCXX_TIME which tests
for nanosleep, and falls back to usleep or sleep.