about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-11-11 21:04:28 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-11-11 21:04:28 +0000
commit8129bf7732decf4472caf8b1c339e4abd072f0ab (patch)
treea829c3eb952de05aacc2a0dcc84b28444c3a5f5c
parenta329844ff8adaffc25343a6f9bb12a3a9e841018 (diff)
downloadglibc-8129bf7732decf4472caf8b1c339e4abd072f0ab.tar.gz
glibc-8129bf7732decf4472caf8b1c339e4abd072f0ab.tar.xz
glibc-8129bf7732decf4472caf8b1c339e4abd072f0ab.zip
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>.
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/unix/sysv/linux/sh/sys/user.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 262069d694..7c725856d8 100644
--- 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)
diff --git a/sysdeps/unix/sysv/linux/sh/sys/user.h b/sysdeps/unix/sysv/linux/sh/sys/user.h
index 47b87aede9..2999b03e68 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