about summary refs log tree commit diff
path: root/sysdeps/unix/sysv
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 /sysdeps/unix/sysv
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>.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/sh/sys/user.h1
1 files changed, 1 insertions, 0 deletions
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