error: depend on stdio
[gnulib.git] / tests / test-shutdown.c
index 49df75a..781577d 100644 (file)
@@ -22,6 +22,7 @@
 SIGNATURE_CHECK (shutdown, int, (int, int));
 
 #include <errno.h>
+#include <unistd.h>
 
 #include "sockets.h"
 #include "macros.h"
@@ -38,6 +39,7 @@ main (void)
     ASSERT (errno == EBADF);
   }
   {
+    close (99);
     errno = 0;
     ASSERT (shutdown (99, SHUT_RD) == -1);
     ASSERT (errno == EBADF);