glibc/sysdeps
Zack Weinberg 72b81552a1 Add shim header for bits/syscall.h.
On Linux-based configurations, bits/syscall.h is a generated file.
To avoid build-ordering problems, the Linux sys/syscall.h only includes
bits/syscall.h if _LIBC is not defined.  After the _ISOMAC-testsuite
changes, this means any test case that includes sys/syscall.h tries to
pull in bits/syscall.h.  This would be fine, because it'll definitely
have been generated by the time we start compiling tests, except that
the generated <builddir>/misc/bits/syscall.h is not visible in the
include path, because nothing needed it till now.  So we either get
the bits/syscall.h from the host system, or the build fails.

The fix is simple: add a shim header for bits/syscall.h.  I put it in
sysdeps/unix/sysv/linux/include instead of the top-level include/
because bits/syscall.h doesn't exist at all on other configurations as
far as I can tell.

This is known to affect nptl/tst-cond2[45].  Thanks to John David
Anglin for noticing the problem.

	[BZ #21514]
	* sysdeps/unix/sysv/linux/include/bits/syscall.h: New shim header
	pointing to the generated file in <builddir>/misc/bits/syscall.h.
2017-06-01 10:56:10 -04:00
..
aarch64 aarch64: Thunderx specific memcpy and memmove 2017-05-24 16:46:48 -07:00
alpha Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
arm Fix more namespace issues in sys/ucontext.h (bug 21457). 2017-06-01 14:07:40 +00:00
generic Fix sys/ucontext.h namespace from signal.h etc. inclusion (bug 21457). 2017-05-23 11:49:48 +00:00
gnu manual: Convert errno @comments to new @errno macro. 2017-05-19 22:47:53 -07:00
hppa Remove wrong definitions from pthread header refactor 2017-05-11 10:46:03 -03:00
i386 Fix more namespace issues in sys/ucontext.h (bug 21457). 2017-06-01 14:07:40 +00:00
ia64 Suppress internal declarations for most of the testsuite. 2017-05-11 19:27:59 -04:00
ieee754 float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
init_array Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
m68k Fix more namespace issues in sys/ucontext.h (bug 21457). 2017-06-01 14:07:40 +00:00
mach Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
microblaze Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
mips Fix more namespace issues in sys/ucontext.h (bug 21457). 2017-06-01 14:07:40 +00:00
nios2 Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
nptl fork: Remove bogus parent PID assertions [BZ #21386] 2017-05-12 16:04:16 +02:00
posix posix: Implement preadv2 and pwritev2 2017-05-31 17:35:46 -03:00
powerpc Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
pthread Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
s390 Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
sh Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
sparc Remove useless comment from sysdeps/sparc/sparc32/dl-machine.h 2017-05-23 01:10:29 +05:30
tile Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
unix Add shim header for bits/syscall.h. 2017-06-01 10:56:10 -04:00
wordsize-32 Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
wordsize-64 Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
x86 Delay initialization of CPU features struct in static binaries 2017-05-31 06:38:33 +05:30
x86_64 x86_64: Remove redundant REX bytes from memchr.S 2017-05-30 12:39:14 -07:00