diff options
author | peter <peter@FreeBSD.org> | 1996-09-18 06:40:54 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-09-18 06:40:54 +0000 |
commit | 0d2830f018c2f80889461624f8e3d59d1d78a15f (patch) | |
tree | 91c6f0025cb8e595ad0becbd1d7506bd7f362773 /contrib/gcc | |
parent | be3d0a43bae9fe89d765f80c12256ea2c646fc90 (diff) | |
download | FreeBSD-src-0d2830f018c2f80889461624f8e3d59d1d78a15f.zip FreeBSD-src-0d2830f018c2f80889461624f8e3d59d1d78a15f.tar.gz |
When compiling native on freebsd, do not search the multitude of extended
include file paths that do not exist.
Diffstat (limited to 'contrib/gcc')
-rw-r--r-- | contrib/gcc/cccp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc/cccp.c b/contrib/gcc/cccp.c index 39f1a5a..1e6bd40 100644 --- a/contrib/gcc/cccp.c +++ b/contrib/gcc/cccp.c @@ -4923,6 +4923,7 @@ open_include_file (filename, searchptr) register char *from; char *p, *dir; +#ifndef FREEBSD_NATIVE if (searchptr && ! searchptr->got_name_map) { searchptr->name_map = read_name_map (searchptr->fname @@ -4945,6 +4946,7 @@ open_include_file (filename, searchptr) } } } +#endif /* Try to find a mapping file for the particular directory we are looking in. Thus #include <sys/types.h> will look up sys/types.h @@ -4981,9 +4983,11 @@ open_include_file (filename, searchptr) dir[p - filename] = '\0'; from = p + 1; } +#ifndef FREEBSD_NATIVE for (map = read_name_map (dir); map; map = map->map_next) if (! strcmp (map->map_from, from)) return open (map->map_to, O_RDONLY, 0666); +#endif return open (filename, O_RDONLY, 0666); } |