Add some glibc-like #defines for libchrome.

libchrome uses __USE_XOPEN2K8 to decide whether futimens is
available. That's perhaps not the best idea, but there are other
cases where we defined the same feature macros as glibc to aid
portability.

Change-Id: Ie6e04cb181d88698d618e7dbd26cd347a6bf076c
This commit is contained in:
Elliott Hughes 2015-07-07 09:22:32 -07:00
parent 89bbb846b9
commit 7ea817d39e

View File

@ -520,6 +520,11 @@
#include <android/api-level.h>
/* glibc compatibility. */
#if __POSIX_VISIBLE >= 200809
#define __USE_ISOC99 1
#define __USE_XOPEN2K 1
#define __USE_XOPEN2K8 1
#endif
#if __LP64__
#define __WORDSIZE 64
#else