My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1952: sys/types.h breaks on gcc -ansi
5 people starred this issue and may be notified of changes. Back to list
Status:  FutureRelease
Owner:  ----
Closed:  Oct 2012
Cc:  e...@google.com


Sign in to add a comment
 
Reported by al...@google.com, Feb 9, 2009
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
#1 jbq+legacy@google.com
(No comment was entered for this change.)
Labels: Component-System
Oct 4, 2012
Project Member #2 andrewhs...@google.com
Should be fixed by https://android-review.googlesource.com/#/c/41714/
Status: FutureRelease
Cc: e...@google.com
Sign in to add a comment

Powered by Google Project Hosting