Make SH <sys/user.h> self-contained.

The check-installed-headers tests show up that the SH <sys/user.h> is
not self-contained, using size_t without including any header that
defines it.  This patch fixes it by including <stddef.h>, as done for
other architectures' versions of this header.

Tested for SH3 and SH4 (compilation only).

	* sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
This commit is contained in:
Joseph Myers 2016-11-11 21:04:28 +00:00
parent a329844ff8
commit 8129bf7732
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2016-11-11 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
2016-11-10 Chris Metcalf <cmetcalf@mellanox.com>
* sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)

View File

@ -19,6 +19,7 @@
#define _SYS_USER_H 1
#include <asm/ptrace.h>
#include <stddef.h>
/* asm/ptrace.h polutes the namespace. */
#undef PTRACE_GETREGS