[klibc] Fix size of size_t on parisc
Jeff Bailey
jbailey at ubuntu.com
Thu Dec 8 18:25:40 PST 2005
On parisc-linux, gcc defines size_t as unsigned int:
# 1 "<built-in>"
#define __SIZE_TYPE__ unsigned int
This mismatch causes dash to fail to build because of a malloc parameter
mismatch.
--- klibc-1.1.3.orig/include/bits32/bitsize/stddef.h
+++ klibc-1.1.3/include/bits32/bitsize/stddef.h
@@ -6,7 +6,7 @@
#define _BITSIZE_STDDEF_H
#define _SIZE_T
-#if defined(__s390__) || defined(__hppa__) || defined(__cris__)
+#if defined(__s390__) || defined(__cris__)
typedef unsigned long size_t;
#else
typedef unsigned int size_t;
* Canonical Ltd * Ubuntu Service and Support * +1 514 691 7221 *
Linux for Human Beings.
More information about the klibc
mailing list