fpending, obstack, strerror-override: use pure+const function attrs
[gnulib.git] / tests / test-grantpt.c
index fbef804..09f04e3 100644 (file)
@@ -22,6 +22,7 @@
 SIGNATURE_CHECK (grantpt, int, (int));
 
 #include <errno.h>
+#include <unistd.h>
 
 #include "macros.h"
 
@@ -48,6 +49,7 @@ main (void)
   {
     int ret;
 
+    close (99);
     errno = 0;
     ret = grantpt (99);
     if (ret != 0)