|Issue 1952:||sys/types.h breaks on gcc -ansi|
|5 people starred this issue and may be notified of changes.||Back to list|
sys/types.h includes this: typedef uint64_t u_int64_t; uint64_t is (correctly) not defined in stdint.h if compiling with -ansi: #if !defined(__STRICT_ANSI__) typedef __int64_t int64_t; typedef __uint64_t uint64_t; #endif Which means anything that #includes <sys/types.h> gets a "uint64_t not defined" compile error when building with -ansi. The sys/types.h declaration should probably also be protected with __STRICT_ANSI__. The android frameworks/ branch contains lots of similar assumptions that don't survive -ansi, but this one is an easy fix for bionic.
Aug 27, 2009
(No comment was entered for this change.)
Oct 4, 2012
Should be fixed by https://android-review.googlesource.com/#/c/41714/
|► Sign in to add a comment|