]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make SH <sys/user.h> self-contained.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 11 Nov 2016 21:04:28 +0000 (21:04 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 11 Nov 2016 21:04:28 +0000 (21:04 +0000)
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>.

ChangeLog
sysdeps/unix/sysv/linux/sh/sys/user.h

index 262069d694544a7d59620d0d61726232fe28300f..7c725856d899c43220d6b8a6e22e851a348a5d08 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
index 47b87aede993e1eb2c02fe30dba40e559746e36b..2999b03e6834b5c3ecae7a7a8d451a44a692cfb4 100644 (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