From 4bedf19ae7da1329ab77ef1cb275be476748f3fd Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 7 Oct 2009 23:50:09 +0100 Subject: [PATCH] * lto.c: Only include if HAVE_MMAP_FILE. From-SVN: r152543 --- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto.c | 2 ++ 2 files changed, 6 insertions(+) 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); -- 2.47.2