maint.mk: fix "release" target to build _version
[gnulib.git] / tests / test-unlockpt.c
index 5cced0b..ee3bb82 100644 (file)
@@ -22,6 +22,7 @@
 SIGNATURE_CHECK (unlockpt, int, (int));
 
 #include <errno.h>
+#include <unistd.h>
 
 #include "macros.h"
 
@@ -38,6 +39,7 @@ main (void)
            );
   }
   {
+    close (99);
     errno = 0;
     ASSERT (unlockpt (99) == -1);
     ASSERT (errno == EBADF