mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-03 02:00:36 +08:00
Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char* for the constant string. Cast void* to char* for assignment. * NEWS, THANKS: Update. Report by Michal Čihař. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
parent
5372e97391
commit
119e8f8a2d
@ -1,5 +1,11 @@
|
||||
2009-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.
|
||||
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*
|
||||
for the constant string. Cast void* to char* for assignment.
|
||||
* NEWS, THANKS: Update.
|
||||
Report by Michal Čihař.
|
||||
|
||||
Add pgfortran to list of Fortran 95+ compilers.
|
||||
* lib/autoconf/fortran.m4 (_AC_F95_FC): Add pgfortran before
|
||||
pgf95.
|
||||
|
5
NEWS
5
NEWS
@ -1,5 +1,10 @@
|
||||
GNU Autoconf NEWS - User visible changes.
|
||||
|
||||
* Major changes in Autoconf 2.65a (????-??-??) [experimental]
|
||||
Released by ???? ????
|
||||
|
||||
** AC_FUNC_MMAP works in C++ mode again. Regression introduced in 2.64.
|
||||
|
||||
* Major changes in Autoconf 2.65 (2009-11-21) [stable]
|
||||
Released by Eric Blake, based on git versions 2.64.*.
|
||||
|
||||
|
1
THANKS
1
THANKS
@ -250,6 +250,7 @@ Matthew D. Langston langston@SLAC.Stanford.EDU
|
||||
Matthew Mueller donut@azstarnet.com
|
||||
Matthew Woehlke mw_triad@users.sourceforge.net
|
||||
Matthias Andree matthias.andree@gmx.de
|
||||
Michal Čihař nijel@debian.org
|
||||
Michael Elizabeth Chastain chastain@cygnus.com
|
||||
Michael Jenning ?
|
||||
Michael Matz matz@kde.org
|
||||
|
@ -1258,6 +1258,7 @@ int
|
||||
main ()
|
||||
{
|
||||
char *data, *data2, *data3;
|
||||
const char *cdata2;
|
||||
int i, pagesize;
|
||||
int fd, fd2;
|
||||
|
||||
@ -1282,10 +1283,10 @@ main ()
|
||||
fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
|
||||
if (fd2 < 0)
|
||||
return 4;
|
||||
data2 = "";
|
||||
if (write (fd2, data2, 1) != 1)
|
||||
cdata2 = "";
|
||||
if (write (fd2, cdata2, 1) != 1)
|
||||
return 5;
|
||||
data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
|
||||
data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
|
||||
if (data2 == MAP_FAILED)
|
||||
return 6;
|
||||
for (i = 0; i < pagesize; ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user