diff options
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r-- | libc/sysdeps/linux/i386/bits/wordsize.h | 8 | ||||
-rw-r--r-- | libc/sysdeps/linux/nios/crtend.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/i386/bits/wordsize.h b/libc/sysdeps/linux/i386/bits/wordsize.h index ba643b60a..143fedadb 100644 --- a/libc/sysdeps/linux/i386/bits/wordsize.h +++ b/libc/sysdeps/linux/i386/bits/wordsize.h @@ -17,3 +17,11 @@ 02111-1307 USA. */ #define __WORDSIZE 32 + +#ifdef UCLIBC_INTERNAL +#ifndef smallint +typedef signed char smallint; +typedef unsigned char smalluint; +#define smallint smallint +#endif +#endif diff --git a/libc/sysdeps/linux/nios/crtend.c b/libc/sysdeps/linux/nios/crtend.c index 26af229af..bef6f513d 100644 --- a/libc/sysdeps/linux/nios/crtend.c +++ b/libc/sysdeps/linux/nios/crtend.c @@ -25,7 +25,7 @@ static void dummy_init(void) __attribute__((section(".trash"))); void dummy_init(void) { - static int initialized = 0; + static smallint initialized; static void (*volatile call__ctors)(void) = __do_global_ctors_aux; /* * Call global constructors. |