diff options
Diffstat (limited to 'nptl/tst-tls3.c')
-rw-r--r-- | nptl/tst-tls3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/tst-tls3.c b/nptl/tst-tls3.c index 0408a1a351..a34862e58c 100644 --- a/nptl/tst-tls3.c +++ b/nptl/tst-tls3.c @@ -18,6 +18,7 @@ 02111-1307 USA. */ #include <dlfcn.h> +#include <errno.h> #include <pthread.h> #include <signal.h> #include <semaphore.h> @@ -145,7 +146,7 @@ do_test (void) exit (1); } - if (sem_wait (&s) != 0) + if (TEMP_FAILURE_RETRY (sem_wait (&s)) != 0) { puts ("sem_wait failed"); exit (1); |