diff options
-rw-r--r-- | gcc/lto/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto/lto.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index dae0367..e88baf4 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2009-10-07 Joseph Myers <joseph@codesourcery.com> + + * lto.c: Only include <sys/mman.h> if HAVE_MMAP_FILE. + 2009-10-07 Jan Hubicka <jh@suse.cz> * lto.c (read_cgraph_and_symbols): Mark functions neccesary only at diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index ab4c208..504fe48 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 <sys/mman.h> +#endif DEF_VEC_P(bitmap); DEF_VEC_ALLOC_P(bitmap,heap); |