about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-10-04 10:54:40 -0300
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-10-04 10:54:40 -0300
commit22938c4103a4b0b6e8d4b3d50a1c41e3f27dd73e (patch)
tree6acf0c8d1d729e6b90fee669b3bbee9ce1daf387 /sysdeps
parent7125ad021dd9f0c8998ccfbb9c0a5152c7a2131e (diff)
downloadglibc-22938c4103a4b0b6e8d4b3d50a1c41e3f27dd73e.tar.gz
glibc-22938c4103a4b0b6e8d4b3d50a1c41e3f27dd73e.tar.xz
glibc-22938c4103a4b0b6e8d4b3d50a1c41e3f27dd73e.zip
powerpc: Installed-header hygiene
Fix powerpc-specific headers:
 - Make it compatible to C89 by replace references to inline by __inline__.
 - Get the definition of sigset_t used by
   sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h.
 - Includes missing header file.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/powerpc/sys/platform/ppc.h18
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h1
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/sys/user.h1
3 files changed, 11 insertions, 9 deletions
diff --git a/sysdeps/powerpc/sys/platform/ppc.h b/sysdeps/powerpc/sys/platform/ppc.h
index 4d8a41165b..bf6ee31296 100644
--- a/sysdeps/powerpc/sys/platform/ppc.h
+++ b/sysdeps/powerpc/sys/platform/ppc.h
@@ -24,7 +24,7 @@
 #include <bits/ppc.h>
 
 /* Read the Time Base Register.   */
-static inline uint64_t
+static __inline__ uint64_t
 __ppc_get_timebase (void)
 {
 #if __GNUC_PREREQ (4, 8)
@@ -56,7 +56,7 @@ __ppc_get_timebase (void)
 /* Provides a hint that performance will probably be improved if shared
    resources dedicated to the executing processor are released for use by other
    processors.  */
-static inline void
+static __inline__ void
 __ppc_yield (void)
 {
   __asm__ volatile ("or 27,27,27");
@@ -66,7 +66,7 @@ __ppc_yield (void)
    resources dedicated to the executing processor are released until
    all outstanding storage accesses to caching-inhibited storage have been
    completed.  */
-static inline void
+static __inline__ void
 __ppc_mdoio (void)
 {
   __asm__ volatile ("or 29,29,29");
@@ -76,7 +76,7 @@ __ppc_mdoio (void)
    resources dedicated to the executing processor are released until all
    outstanding storage accesses to cacheable storage for which the data is not
    in the cache have been completed.  */
-static inline void
+static __inline__ void
 __ppc_mdoom (void)
 {
   __asm__ volatile ("or 30,30,30");
@@ -94,19 +94,19 @@ __ppc_mdoom (void)
    use unguarded. The default value is 'medium'.
  */
 
-static inline void
+static __inline__ void
 __ppc_set_ppr_med (void)
 {
   __asm__ volatile ("or 2,2,2");
 }
 
-static inline void
+static __inline__ void
 __ppc_set_ppr_med_low (void)
 {
   __asm__ volatile ("or 6,6,6");
 }
 
-static inline void
+static __inline__ void
 __ppc_set_ppr_low (void)
 {
   __asm__ volatile ("or 1,1,1");
@@ -129,13 +129,13 @@ __ppc_set_ppr_low (void)
 
 #ifdef _ARCH_PWR8
 
-static inline void
+static __inline__ void
 __ppc_set_ppr_very_low (void)
 {
   __asm__ volatile ("or 31,31,31");
 }
 
-static inline void
+static __inline__ void
 __ppc_set_ppr_med_high (void)
 {
   __asm__ volatile ("or 5,5,5");
diff --git a/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h b/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
index c4634f68b5..e40bced8c5 100644
--- a/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
+++ b/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
@@ -19,6 +19,7 @@
 #define _SYS_UCONTEXT_H	1
 
 #include <features.h>
+#define __need_sigset_t
 #include <signal.h>
 
 /* We need the signal context definitions even if they are not exposed
diff --git a/sysdeps/unix/sysv/linux/powerpc/sys/user.h b/sysdeps/unix/sysv/linux/powerpc/sys/user.h
index 97459fba80..4f2ebc2535 100644
--- a/sysdeps/unix/sysv/linux/powerpc/sys/user.h
+++ b/sysdeps/unix/sysv/linux/powerpc/sys/user.h
@@ -18,6 +18,7 @@
 #ifndef _SYS_USER_H
 
 #define _SYS_USER_H	1
+#include <stddef.h>
 #include <features.h>
 
 #include <asm/ptrace.h>