]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* lto.c: Only include <sys/mman.h> if HAVE_MMAP_FILE.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 7 Oct 2009 22:50:09 +0000 (23:50 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 7 Oct 2009 22:50:09 +0000 (23:50 +0100)
From-SVN: r152543

gcc/lto/ChangeLog
gcc/lto/lto.c

index dae0367d5da56497e1181a8e43384b7ce09ab0d3..e88baf4dd6c76541e1cf10cb69a1e950401d73cd 100644 (file)
@@ -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
index ab4c208670d95acdf1639c5ec1b9e0ca34d83c75..504fe48e7533a65656e3442100e0e3ff0338bbce 100644 (file)
@@ -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);