mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-11 11:50:06 +00:00
81df4d253d
Various include/bits/types/*.h files do where the path specified is relative to the toplevel glibc source directory. That has the wrong number of ../ components to achieve the desired effect; it actually searches relative to include/ for a file that does not exist there, then goes on to search the #include <> paths specified with -I, eventually finding the desired file via such a path (e.g. sysdeps/nptl/) with the right number of directory components. Before that it searches include/../.. because of the -Iinclude, meaning that an appropriately named file outside the glibc source tree can affect the build. This patch changes all those files to do #include <path> without the ../../, as some such files already do. Tested for x86_64. * include/bits/types/clock_t.h: Use #include <path> instead of #include "../../path". * include/bits/types/clockid_t.h: Likewise. * include/bits/types/struct_iovec.h: Likewise. * include/bits/types/struct_itimerspec.h: Likewise. * include/bits/types/struct_osockaddr.h: Likewise. * include/bits/types/struct_sigstack.h: Likewise. * include/bits/types/struct_timespec.h: Likewise. * include/bits/types/struct_timeval.h: Likewise. * include/bits/types/struct_tm.h: Likewise. * include/bits/types/time_t.h: Likewise. * include/bits/types/timer_t.h: Likewise. |
||
---|---|---|
.. | ||
types | ||
cmathcalls.h | ||
dlfcn.h | ||
error.h | ||
fcntl2.h | ||
getopt_core.h | ||
getopt_ext.h | ||
getopt_posix.h | ||
locale.h | ||
mathcalls-helper-functions.h | ||
mathcalls.h | ||
poll2.h | ||
posix1_lim.h | ||
posix2_lim.h | ||
select2.h | ||
setjmp2.h | ||
socket2.h | ||
stab.def | ||
stdlib-float.h | ||
stdlib.h | ||
string2.h | ||
string3.h | ||
strings_fortified.h | ||
syslog.h | ||
types.h | ||
unistd.h | ||
wchar2.h | ||
xopen_lim.h |