diff options
Diffstat (limited to 'libgfortran/io')
-rw-r--r-- | libgfortran/io/open.c | 4 | ||||
-rw-r--r-- | libgfortran/io/read.c | 2 | ||||
-rw-r--r-- | libgfortran/io/unix.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/libgfortran/io/open.c b/libgfortran/io/open.c index 19fab1d..cca0ecc 100644 --- a/libgfortran/io/open.c +++ b/libgfortran/io/open.c @@ -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> diff --git a/libgfortran/io/read.c b/libgfortran/io/read.c index 2da1048..d7d5c41 100644 --- a/libgfortran/io/read.c +++ b/libgfortran/io/read.c @@ -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) { diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index 08fe4fe..dd2715b 100644 --- a/libgfortran/io/unix.c +++ b/libgfortran/io/unix.c @@ -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> |