Imported from ../bash-2.0.tar.gz.
[platform/upstream/bash.git] / builtins / psize.c
index 03a4f6e..0ba1c51 100644 (file)
 /*  Write output in 128-byte chunks until we get a sigpipe or write gets an
     EPIPE.  Then report how many bytes we wrote.  We assume that this is the
     pipe size. */
+#include <config.h>
+
+#if defined (HAVE_UNISTD_H)
+#  include <unistd.h>
+#endif
 
 #include <stdio.h>
 #include <sys/types.h>
@@ -29,6 +34,7 @@
 
 #include "../command.h"
 #include "../general.h"
+#include "../sig.h"
 extern int errno;
 
 int nw;