* runtime/pause.c: Test HAVE_UNISTD_H.
* runtime/stop.c: Same.
* io/open.c: Same.
* io/unix.c: Same.
* io/read.c (si_max): Protect declaration of value.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198603
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-05-04 David Edelsohn <dje.gcc@gmail.com>
+
+ * runtime/environ.c: Include unistd.h.
+ * runtime/pause.c: Test HAVE_UNISTD_H.
+ * runtime/stop.c: Same.
+ * io/open.c: Same.
+ * io/unix.c: Same.
+ * io/read.c (si_max): Protect declaration of value.
+
2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
* intrinsics/system_clock (gf_gettime_mono): Use variable
#include "io.h"
#include "fbuf.h"
#include "unix.h"
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include <string.h>
#include <errno.h>
#include <stdlib.h>
GFC_UINTEGER_LARGEST
si_max (int length)
{
+#if defined HAVE_GFC_REAL_16 || defined HAVE_GFC_REAL_10
GFC_UINTEGER_LARGEST value;
+#endif
switch (length)
{
#include <stdlib.h>
#include <limits.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include <sys/stat.h>
#include <fcntl.h>
#include <assert.h>
#include <stdlib.h>
#include <ctype.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
/* Environment scanner. Examine the environment for controlling minor
* aspects of the program's execution. Our philosophy here that the
#include "libgfortran.h"
#include <string.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
static void
do_pause (void)
#include "libgfortran.h"
#include <stdlib.h>
#include <string.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
/* A numeric STOP statement. */