diff options
Diffstat (limited to 'dirent/tst-fdopendir.c')
-rw-r--r-- | dirent/tst-fdopendir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dirent/tst-fdopendir.c b/dirent/tst-fdopendir.c index 6321af1daa..2c9520574d 100644 --- a/dirent/tst-fdopendir.c +++ b/dirent/tst-fdopendir.c @@ -7,6 +7,8 @@ #include <string.h> #include <sys/stat.h> +#include <support/xunistd.h> + #ifndef O_NOATIME # define O_NOATIME 0 #endif @@ -22,7 +24,7 @@ do_test (void) return 1; } - write (fd, "hello", 5); + xwrite (fd, "hello", 5); close (fd); struct stat64 st; |