Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 423460 Details for
Bug 568500
dev-util/mingw-runtime: sys/stat.h missing umask prototype (which breaks gcc[fortran])
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Include <io.h> if it exists
gentoo568500b.patch (text/plain), 2.43 KB, created by
Martin von Gagern
on 2016-01-21 02:44:58 UTC
(
hide
)
Description:
Include <io.h> if it exists
Filename:
MIME Type:
Creator:
Martin von Gagern
Created:
2016-01-21 02:44:58 UTC
Size:
2.43 KB
patch
obsolete
>Index: gcc-5.3.0/libgfortran/configure.ac >=================================================================== >--- gcc-5.3.0.orig/libgfortran/configure.ac >+++ gcc-5.3.0/libgfortran/configure.ac >@@ -267,7 +267,7 @@ AC_CHECK_TYPES([ptrdiff_t]) > # check header files (we assume C89 is available, so don't check for that) > AC_CHECK_HEADERS_ONCE(unistd.h sys/time.h sys/times.h sys/resource.h \ > sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h fenv.h fptrap.h \ >-fpxcp.h pwd.h complex.h xlocale.h) >+fpxcp.h pwd.h complex.h xlocale.h io.h) > > GCC_HEADER_STDINT(gstdint.h) > >Index: gcc-5.3.0/libgfortran/intrinsics/chmod.c >=================================================================== >--- gcc-5.3.0.orig/libgfortran/intrinsics/chmod.c >+++ gcc-5.3.0/libgfortran/intrinsics/chmod.c >@@ -31,6 +31,10 @@ see the files COPYING3 and COPYING.RUNTI > #include <stdlib.h> /* For free. */ > #include <sys/stat.h> /* For stat, chmod and umask. */ > >+#ifdef HAVE_IO_H >+#include <io.h> /* For umask on Windows. */ >+#endif >+ > > /* INTEGER FUNCTION CHMOD (NAME, MODE) > CHARACTER(len=*), INTENT(IN) :: NAME, MODE >Index: gcc-5.3.0/libgfortran/intrinsics/umask.c >=================================================================== >--- gcc-5.3.0.orig/libgfortran/intrinsics/umask.c >+++ gcc-5.3.0/libgfortran/intrinsics/umask.c >@@ -35,6 +35,10 @@ see the files COPYING3 and COPYING.RUNTI > #include <unistd.h> > #endif > >+#ifdef HAVE_IO_H >+#include <io.h> >+#endif >+ > > /* SUBROUTINE UMASK(MASK, OLD) > INTEGER, INTENT(IN) :: MASK >Index: gcc-5.3.0/libgfortran/configure >=================================================================== >--- gcc-5.3.0.orig/libgfortran/configure >+++ gcc-5.3.0/libgfortran/configure >@@ -2552,6 +2552,7 @@ as_fn_append ac_header_list " fpxcp.h" > as_fn_append ac_header_list " pwd.h" > as_fn_append ac_header_list " complex.h" > as_fn_append ac_header_list " xlocale.h" >+as_fn_append ac_header_list " io.h" > as_fn_append ac_func_list " getrusage" > as_fn_append ac_func_list " times" > as_fn_append ac_func_list " mkstemp" >Index: gcc-5.3.0/libgfortran/config.h.in >=================================================================== >--- gcc-5.3.0.orig/libgfortran/config.h.in >+++ gcc-5.3.0/libgfortran/config.h.in >@@ -513,6 +513,9 @@ > /* Define to 1 if you have the <inttypes.h> header file. */ > #undef HAVE_INTTYPES_H > >+/* Define to 1 if you have the <io.h> header file. */ >+#undef HAVE_IO_H >+ > /* Define to 1 if you have the `j0' function. */ > #undef HAVE_J0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 568500
:
419436
|
419438
| 423460