strtoimax: port to HP-UX 11.11
[gnulib.git] / tests / test-dprintf.c
index fcc8d51..b70e91c 100644 (file)
@@ -22,6 +22,7 @@
 SIGNATURE_CHECK (dprintf, int, (int, const char *, ...));
 
 #include <errno.h>
+#include <unistd.h>
 
 #include "macros.h"
 
@@ -35,6 +36,7 @@ main (int argc, char *argv[])
     ASSERT (errno == EBADF);
   }
   {
+    close (99);
     errno = 0;
     ASSERT (dprintf (99, "test") == -1);
     ASSERT (errno == EBADF);