Merge "Remove declaration for __brk." am: e20730ca0b

am: 73d521e9db

* commit '73d521e9dbd06b556dc965c3a3416250253e4518':
  Remove declaration for __brk.

Change-Id: I17152efdb7eeba281d818b135005c79ae6d7fc15
This commit is contained in:
Josh Gao 2016-06-02 02:35:00 +00:00 committed by android-build-merger
commit fc9f5dae25
2 changed files with 2 additions and 1 deletions

View file

@ -35,6 +35,8 @@ static void* __bionic_brk;
void* __bionic_brk; // Accidentally exported by the NDK.
#endif
extern "C" void* __brk(void* __addr);
int brk(void* end_data) {
__bionic_brk = __brk(end_data);
if (__bionic_brk < end_data) {

View file

@ -204,7 +204,6 @@ extern int usleep(useconds_t __usec);
int gethostname(char* __name, size_t __len);
int sethostname(const char* __name, size_t __len) __INTRODUCED_IN(23);
extern void* __brk(void* __addr);
extern int brk(void* __addr);
extern void* sbrk(ptrdiff_t __increment);