summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-01 21:52:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-01 21:52:47 +0000
commiteed923be3e7e81a8d812bd224c138dee5e20f95f (patch)
treebe5399f007b0f0b7ff555b46205ac65465f06d0e /include/unistd.h
parent999f12709a9afc310f08bf1216e9bbf5ea37774d (diff)
Rework smallint machinery so that it will reliably fail to compile
even if arch overrides smallint size. Makes it easier to spot bugs on such arches.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 53ee6df64..3b72b8222 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1109,11 +1109,11 @@ __END_DECLS
#ifdef UCLIBC_INTERNAL
-#ifndef smallint /* if arch didn't override it in bits/wordsize.h */
-typedef int smallint;
-typedef unsigned smalluint;
-#define smallint smallint
+#ifndef smallint_type /* if arch didn't override it in bits/wordsize.h */
+#define smallint_type int
#endif
+typedef signed smallint_type smallint;
+typedef unsigned smallint_type smalluint;
#endif