This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [dave@hiauly1.hia.nrc.ca: Incorrect file name simplication]
- To: zackw at Stanford dot EDU (Zack Weinberg)
- Subject: Re: [dave@hiauly1.hia.nrc.ca: Incorrect file name simplication]
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 29 Mar 2001 18:13:45 -0500 (EST)
- Cc: neil at daikokuya dot demon dot co dot uk, gcc-bugs at gcc dot gnu dot org
> I'd like some more context. How do we get a silly path like that in
> the first place?
It appears that a number of include have relative include paths.
For example, sys/audit.h has
#ifdef KERNEL
#include "../h/ansi_compat.h"
#include "../h/types.h"
#include "../h/time.h"
#include "../h/param.h"
#else
#include <ansi_compat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/param.h>
#endif /* KERNEL */
With the links as they are, the same files are loaded for both cases.
I would guess that at one time the files were installed in both /sys/h
and /usr/include/sys.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)