public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Make SH <sys/user.h> self-contained
@ 2016-11-04 16:47 Joseph Myers
  2016-11-11 15:03 ` Ping " Joseph Myers
  2016-11-11 19:33 ` Mike Frysinger
  0 siblings, 2 replies; 3+ messages in thread
From: Joseph Myers @ 2016-11-04 16:47 UTC (permalink / raw)
  To: libc-alpha

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>.

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

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Ping Re: Make SH <sys/user.h> self-contained
  2016-11-04 16:47 Make SH <sys/user.h> self-contained Joseph Myers
@ 2016-11-11 15:03 ` Joseph Myers
  2016-11-11 19:33 ` Mike Frysinger
  1 sibling, 0 replies; 3+ messages in thread
From: Joseph Myers @ 2016-11-11 15:03 UTC (permalink / raw)
  To: libc-alpha

Ping.  This patch 
<https://sourceware.org/ml/libc-alpha/2016-11/msg00183.html> is pending 
review.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Make SH <sys/user.h> self-contained
  2016-11-04 16:47 Make SH <sys/user.h> self-contained Joseph Myers
  2016-11-11 15:03 ` Ping " Joseph Myers
@ 2016-11-11 19:33 ` Mike Frysinger
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2016-11-11 19:33 UTC (permalink / raw)
  To: Joseph Myers; +Cc: libc-alpha

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-11 19:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-04 16:47 Make SH <sys/user.h> self-contained Joseph Myers
2016-11-11 15:03 ` Ping " Joseph Myers
2016-11-11 19:33 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).