about summary refs log tree commit diff
path: root/sysdeps/pthread/tst-cancel6.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/tst-cancel6.c')
-rw-r--r--sysdeps/pthread/tst-cancel6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/pthread/tst-cancel6.c b/sysdeps/pthread/tst-cancel6.c
index 63e6d49707..49b7399353 100644
--- a/sysdeps/pthread/tst-cancel6.c
+++ b/sysdeps/pthread/tst-cancel6.c
@@ -20,12 +20,13 @@
 #include <stdlib.h>
 #include <unistd.h>
 
+#include <support/xstdio.h>
 
 static void *
 tf (void *arg)
 {
   char buf[100];
-  fgets (buf, sizeof (buf), arg);
+  xfgets (buf, sizeof (buf), arg);
   /* This call should never return.  */
   return NULL;
 }