strtoimax: port to HP-UX 11.11
[gnulib.git] / tests / test-fclose.c
index 53f9d24..3fbecf1 100644 (file)
@@ -96,7 +96,9 @@ main (int argc, char **argv)
       }
   }
   {
-    FILE *fp = fdopen (99, "r");
+    FILE *fp;
+    close (99);
+    fp = fdopen (99, "r");
     if (fp != NULL)
       {
         errno = 0;