This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH]: Linuxthreads build for PPC
- From: Khem Raj <khem at mvista dot com>
- To: libc-ports at sourceware dot org, Daniel Jacobowitz <dan at codesourcery dot com>
- Date: Thu, 04 May 2006 12:45:10 -0700
- Subject: [PATCH]: Linuxthreads build for PPC
- Organization: MontaVista Software Inc.
Hi Daniel
linuxthreads build failed for ppc. The build complained about uintiptr_t
in tls.h
In file included from ../include/tls.h:6,
from ../sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h:23,
from <stdin>:1:
../linuxthreads/sysdeps/powerpc/tls.h:56: error: expected specifier-qualifier-list before 'uintptr_t'
This patch below fixes the issue.
Thanks
-Khem
2006-05-04 Khem Raj <kraj@mvista.com>
* sysdeps/powerpc/tls.h: Include <stdint.h>.
Index: glibc-2.4.90/linuxthreads/sysdeps/powerpc/tls.h
===================================================================
--- glibc-2.4.90.orig/linuxthreads/sysdeps/powerpc/tls.h
+++ glibc-2.4.90/linuxthreads/sysdeps/powerpc/tls.h
@@ -20,11 +20,13 @@
#ifndef _TLS_H
#define _TLS_H
+
#ifndef __ASSEMBLER__
# include <pt-machine.h>
# include <stdbool.h>
# include <stddef.h>
+# include <stdint.h>
/* Type for the dtv. */
typedef union dtv