Always show the declaration of sbrk(2).

This was done because binutils need this to compile.
This commit is contained in:
Jonas 'Sortie' Termansen 2012-03-04 23:36:04 +01:00
parent be98120b49
commit 7c33b3f10f
1 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,8 @@
#include <features.h>
#include <sortix/seek.h>
#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