Define __WORDSIZE like glibc.

Requested by Google Breakpad, but seems to be assumed to be defined
in various places in the AOSP tree already; iputils, wpa_supplicant,
et cetera.

Change-Id: I1f7833c98e0af4c77e49744c08b8239061c9a571
This commit is contained in:
Elliott Hughes 2014-04-03 13:59:14 -07:00
parent 804b95e535
commit caa15bfe2d

View file

@ -528,6 +528,13 @@
#define __BIONIC__ 1
#include <android/api-level.h>
/* glibc compatibility. */
#if __LP64__
#define __WORDSIZE 64
#else
#define __WORDSIZE 32
#endif
/*
* When _FORTIFY_SOURCE is defined, automatic bounds checking is
* added to commonly used libc functions. If a buffer overrun is