* runtime/environ.c: Include unistd.h.
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 May 2013 21:23:11 +0000 (21:23 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 May 2013 21:23:11 +0000 (21:23 +0000)
        * 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

libgfortran/ChangeLog
libgfortran/io/open.c
libgfortran/io/read.c
libgfortran/io/unix.c
libgfortran/runtime/environ.c
libgfortran/runtime/pause.c
libgfortran/runtime/stop.c

index 334220d..5480274 100644 (file)
@@ -1,3 +1,12 @@
+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
index 19fab1d..cca0ecc 100644 (file)
@@ -26,7 +26,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #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>
index 2da1048..d7d5c41 100644 (file)
@@ -91,7 +91,9 @@ set_integer (void *dest, GFC_INTEGER_LARGEST value, int length)
 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)
       {
index 08fe4fe..dd2715b 100644 (file)
@@ -30,7 +30,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include <stdlib.h>
 #include <limits.h>
 
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
+
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <assert.h>
index 8c09391..a29785b 100644 (file)
@@ -28,6 +28,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #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
index ad69c95..f193314 100644 (file)
@@ -25,7 +25,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 
 #include "libgfortran.h"
 #include <string.h>
+
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
+
 
 static void
 do_pause (void)
index 1f0f453..4805412 100644 (file)
@@ -26,7 +26,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include "libgfortran.h"
 #include <stdlib.h>
 #include <string.h>
+
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
+
 
 /* A numeric STOP statement.  */