From 7c33b3f10fdea857c28d24cfabb59fb45f47f306 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 4 Mar 2012 23:36:04 +0100 Subject: [PATCH] Always show the declaration of sbrk(2). This was done because binutils need this to compile. --- libmaxsi/include/unistd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libmaxsi/include/unistd.h b/libmaxsi/include/unistd.h index 2efe3dd8..e9ee920d 100644 --- a/libmaxsi/include/unistd.h +++ b/libmaxsi/include/unistd.h @@ -31,6 +31,8 @@ #include #include +#define _SORTIX_ALWAYS_SBRK + __BEGIN_DECLS /* Currently just say we support the newest POSIX. */ @@ -71,7 +73,7 @@ __BEGIN_DECLS @include(off_t.h) @include(pid_t.h) @include(useconds_t.h) -#if defined(_SORTIX_SOURCE) +#if defined(_SORTIX_SOURCE) || defined(_SORTIX_ALWAYS_SBRK) @include(intn_t.h) #endif @@ -177,6 +179,8 @@ size_t getpagesize(void); int memstat(size_t* memused, size_t* memtotal); int uptime(uintmax_t* usecssinceboot); int writeall(int fd, const void* buffer, size_t len); +#endif +#if defined(_SORTIX_SOURCE) || defined(_SORTIX_ALWAYS_SBRK) void* sbrk(intptr_t increment); #endif