From: Joseph Myers Date: Wed, 7 Oct 2009 22:50:09 +0000 (+0100) Subject: * lto.c: Only include if HAVE_MMAP_FILE. X-Git-Tag: releases/gcc-4.5.0~3048 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4bedf19ae7da1329ab77ef1cb275be476748f3fd;p=thirdparty%2Fgcc.git * lto.c: Only include if HAVE_MMAP_FILE. From-SVN: r152543 --- diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index dae0367d5da5..e88baf4dd6c7 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2009-10-07 Joseph Myers + + * lto.c: Only include if HAVE_MMAP_FILE. + 2009-10-07 Jan Hubicka * lto.c (read_cgraph_and_symbols): Mark functions neccesary only at diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index ab4c208670d9..504fe48e7533 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -46,7 +46,9 @@ along with GCC; see the file COPYING3. If not see /* This needs to be included after config.h. Otherwise, _GNU_SOURCE will not be defined in time to set __USE_GNU in the system headers, and strsignal will not be declared. */ +#if HAVE_MMAP_FILE #include +#endif DEF_VEC_P(bitmap); DEF_VEC_ALLOC_P(bitmap,heap);