My favorites | Sign in
Project Home Issues
New issue   Search
  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

Sign in to add a comment
Reported by, 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;

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.)
Labels: Component-System
Oct 4, 2012
Project Member #2
Should be fixed by
Status: FutureRelease
Sign in to add a comment

Powered by Google Project Hosting