aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark D Horn <mark.d.horn@intel.com>2011-08-04 17:09:39 -0700
committerMark D Horn <mark.d.horn@intel.com>2011-08-05 08:34:17 -0700
commitc3c0e88beda2abee4380237bbc7aa95da588c00d (patch)
tree4e041cb648a5eae4ad695215a0f0d4294493c80b
parent023c49882e247bd0345946c908cff231ebf7097e (diff)
downloadbionic-c3c0e88beda2abee4380237bbc7aa95da588c00d.tar.gz
NDK: x86 header file has incorrect definition for ptrdiff_t
See Bug http://code.google.com/p/android/issues/detail?id=19042 Change-Id: I8e975930e7f8c3c437ecdffbc6f6bc5028937829 Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
-rw-r--r--libc/arch-x86/include/machine/_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/arch-x86/include/machine/_types.h b/libc/arch-x86/include/machine/_types.h
index 5e28c6408..65892a11e 100644
--- a/libc/arch-x86/include/machine/_types.h
+++ b/libc/arch-x86/include/machine/_types.h
@@ -51,7 +51,11 @@ typedef long int ssize_t;
#endif
#ifndef _PTRDIFF_T
#define _PTRDIFF_T
-typedef long ptrdiff_t;
+# ifdef __ANDROID__
+ typedef int ptrdiff_t;
+# else
+ typedef long ptrdiff_t;
+# endif
#endif
#include <linux/types.h>