summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc/bits/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sparc/bits/types.h')
-rw-r--r--libc/sysdeps/linux/sparc/bits/types.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/sparc/bits/types.h b/libc/sysdeps/linux/sparc/bits/types.h
index 0c7cfbea7..2a1dfd5a3 100644
--- a/libc/sysdeps/linux/sparc/bits/types.h
+++ b/libc/sysdeps/linux/sparc/bits/types.h
@@ -118,7 +118,11 @@ typedef int __timer_t;
typedef int __key_t;
/* Used in `struct shmid_ds'. */
-typedef __kernel_ipc_pid_t __ipc_pid_t;
+#if __WORDSIZE == 64
+typedef int __ipc_pid_t;
+#else
+typedef unsigned short int __ipc_pid_t;
+#endif
/* Type to represent block size. */
@@ -154,7 +158,7 @@ typedef unsigned int __socklen_t;
/* Now add the thread types. */
-#if defined __USE_POSIX199506 || defined __USE_UNIX98
+#if defined __UCLIBC_HAS_THREADS__ && (defined __USE_POSIX199506 || defined __USE_UNIX98)
# include <bits/pthreadtypes.h>
#endif