* lto.c: Only include <sys/mman.h> if HAVE_MMAP_FILE.

From-SVN: r152543
This commit is contained in:
Joseph Myers 2009-10-07 23:50:09 +01:00 committed by Joseph Myers
parent 7190c775ff
commit 4bedf19ae7
2 changed files with 6 additions and 0 deletions

View 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

View 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);