glibc/sysdeps
Joseph Myers 8cacbcf4a9 Fix RISC-V vfork build with Linux 5.3 kernel headers.
Building glibc for RISC-V with Linux 5.3 kernel headers fails because
<linux/sched.h>, included in vfork.S for CLONE_* constants, contains a
structure definition not safe for inclusion in assembly code.

All other architectures already avoid use of that header in vfork.S,
either defining the CLONE_* constants locally or embedding the
required values directly in the relevant instruction, where they
implement vfork using the clone syscall (see the implementations for
aarch64, ia64, mips and nios2).  This patch makes the RISC-V version
define the constants locally like the other architectures.

Tested build for all three RISC-V configurations in
build-many-glibcs.py with Linux 5.3 headers.

	* sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
	<linux/sched.h>.
	(CLONE_VM): New macro.
	(CLONE_VFORK): Likewise.
2019-09-18 13:22:24 +00:00
..
aarch64 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
alpha Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
arm Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
csky Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
generic Fix small error in HP_TIMING_PRINT trailing null char setting 2019-09-17 17:50:11 +08:00
gnu Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
hppa Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
htl Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
hurd Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
i386 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ia64 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ieee754 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
init_array Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
m68k Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mach Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
microblaze Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mips Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
nios2 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
nptl Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
posix Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
powerpc Refactor vDSO initialization code 2019-09-17 17:09:24 -03:00
pthread Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
riscv Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s390 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sh Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sparc Fix three GNU license URLs, along with trailing-newline issues. 2019-09-07 03:13:16 -07:00
unix Fix RISC-V vfork build with Linux 5.3 kernel headers. 2019-09-18 13:22:24 +00:00
wordsize-32 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
wordsize-64 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
x86 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
x86_64 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00