diff options
Diffstat (limited to 'src/test/test-async.c')
-rw-r--r-- | src/test/test-async.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test-async.c b/src/test/test-async.c index abd36d693c..4ebc27f0bd 100644 --- a/src/test/test-async.c +++ b/src/test/test-async.c @@ -20,8 +20,9 @@ #include <unistd.h> #include "async.h" -#include "util.h" +#include "fileio.h" #include "macro.h" +#include "util.h" static bool test_async = false; @@ -35,7 +36,7 @@ int main(int argc, char *argv[]) { int fd; char name[] = "/tmp/test-asynchronous_close.XXXXXX"; - fd = mkostemp_safe(name, O_RDWR|O_CLOEXEC); + fd = mkostemp_safe(name); assert_se(fd >= 0); asynchronous_close(fd); |