summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/sys/procfs.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-07 18:33:49 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-07 18:33:49 +0000
commit4f0b121a93fe23a9dbbe97d7b961438ac11d019b (patch)
tree65068cecd7911dab964ba038c6aa47ba7ac60c6f /libc/sysdeps/linux/powerpc/sys/procfs.h
parent5e816a6bb9043ad5b7bd0671313772481331d3e6 (diff)
Fixup function prototype for __uint128_t which fixes the compile
on powerpc with gcc 3.2. -Erik
Diffstat (limited to 'libc/sysdeps/linux/powerpc/sys/procfs.h')
-rw-r--r--libc/sysdeps/linux/powerpc/sys/procfs.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/powerpc/sys/procfs.h b/libc/sysdeps/linux/powerpc/sys/procfs.h
index b761bf21c..f2424889e 100644
--- a/libc/sysdeps/linux/powerpc/sys/procfs.h
+++ b/libc/sysdeps/linux/powerpc/sys/procfs.h
@@ -42,12 +42,10 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG];
typedef double elf_fpreg_t;
typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
-/* gcc doesn't support __TI__ yet */
-#if 0
-typedef unsigned __uint128_t __attribute__ (( __mode__ (__TI__)));
-#else
+/* gcc 3.1 and newer support __uint128_t. */
+#if !__GNUC_PREREQ(3,1)
typedef struct {
- unsigned long u[4];
+ unsigned long u[4];
} __attribute((aligned(16))) __uint128_t;
#endif