# HG changeset patch # User Markus Mützel # Date 1516219967 -3600 # Node ID 66729bff987773e124f3cf0626cad2523334cdaf # Parent 3daa67b7a243d93334c324bafd5787cb4956d1ff utils.cc (octave_sleep): Use wrapper for gnulib function (bug #52876). diff -r 3daa67b7a243 -r 66729bff9877 libinterp/corefcn/utils.cc --- a/libinterp/corefcn/utils.cc Wed Jan 17 11:25:42 2018 -0800 +++ b/libinterp/corefcn/utils.cc Wed Jan 17 21:12:47 2018 +0100 @@ -1374,7 +1374,7 @@ struct timespec hundredths_delay = { 0, static_cast (fraction) }; - nanosleep (&hundredths_delay, nullptr); + octave_nanosleep_wrapper (&hundredths_delay, nullptr); // Sleep for the whole tenths portion, allowing interrupts every // tenth. @@ -1383,7 +1383,7 @@ for (int i = 0; i < static_cast (tenths); i++) { - nanosleep (&one_tenth, nullptr); + octave_nanosleep_wrapper (&one_tenth, nullptr); octave_quit (); } @@ -1399,7 +1399,7 @@ { for (int i = 0; i < 10; i++) { - nanosleep (&one_tenth, nullptr); + octave_nanosleep_wrapper (&one_tenth, nullptr); octave_quit (); }