This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH libgfortran mmap fixes for MinGW
- From: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: fortran at gcc dot gnu dot org, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 14 Oct 2004 02:31:21 -0500
- Subject: Re: PATCH libgfortran mmap fixes for MinGW
- References: <4148C555.4000601@aaronwl.com> <200409190058.19151.paul@codesourcery.com>
Paul Brook wrote:
> I changed it to define PROT_* if absent, instead of #ifdefs in the code.
> Applied as below.
>
> Paul
>
> 2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
>
> * config.h.in: Regenerate.
> * configure: Regenerate.
> * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
> * unix.c: Include stdio.h.
> (HAVE_SYS_MMAN_H): Check.
> (PROT_READ, PROT_WRITE): Provide default definitions.
Sorry, I didn't notice at the time, but the <stdio.h> bit got missed.
The STD*_FILENO macros are defined in <stdio.h> in MinGW.
Aaron W. LaFramboise