diff mbox

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

Message ID alpine.DEB.2.20.1611041647210.25235@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers Nov. 4, 2016, 4:47 p.m. UTC
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).

2016-11-04  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.

Comments

Joseph Myers Nov. 11, 2016, 3:02 p.m. UTC | #1
Ping.  This patch 
<https://sourceware.org/ml/libc-alpha/2016-11/msg00183.html> is pending 
review.
Mike Frysinger Nov. 11, 2016, 7:33 p.m. UTC | #2
On 04 Nov 2016 16:47, Joseph Myers wrote:
> 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).

OK!
-mike
diff mbox

Patch

diff --git a/sysdeps/unix/sysv/linux/sh/sys/user.h b/sysdeps/unix/sysv/linux/sh/sys/user.h
index 47b87ae..2999b03 100644
--- a/sysdeps/unix/sysv/linux/sh/sys/user.h
+++ b/sysdeps/unix/sysv/linux/sh/sys/user.h
@@ -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