]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make MIPS <sys/user.h> self-contained.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 4 Nov 2016 16:44:23 +0000 (16:44 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 4 Nov 2016 16:44:23 +0000 (16:44 +0000)
The check-installed-headers tests show up that the MIPS <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 MIPS (all 24 ABIs, compilation only).

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

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

index babd209bf7d2e3fc8bd6b6c894ccc4832087a7c5..80b3c1b2ab2c29c6c811ccf0ea2f022490f51e0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
+
        * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
        (test-xfail-check-execstack): New variable.
 
index b240438d0a9fd56c2121508b28dc6951128fa05d..f3547d908554f0a422e510eebb5d49e571e0473c 100644 (file)
@@ -19,6 +19,7 @@
 #define _SYS_USER_H    1
 
 #include <sgidefs.h>
+#include <stddef.h>
 
 /* The whole purpose of this file is for GDB and GDB only.  Don't read
    too much into it.  Don't use it for anything other than GDB unless