Always show the declaration of sbrk(2).
This was done because binutils need this to compile.
This commit is contained in:
parent
be98120b49
commit
7c33b3f10f
|
@ -31,6 +31,8 @@
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#include <sortix/seek.h>
|
#include <sortix/seek.h>
|
||||||
|
|
||||||
|
#define _SORTIX_ALWAYS_SBRK
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
/* Currently just say we support the newest POSIX. */
|
/* Currently just say we support the newest POSIX. */
|
||||||
|
@ -71,7 +73,7 @@ __BEGIN_DECLS
|
||||||
@include(off_t.h)
|
@include(off_t.h)
|
||||||
@include(pid_t.h)
|
@include(pid_t.h)
|
||||||
@include(useconds_t.h)
|
@include(useconds_t.h)
|
||||||
#if defined(_SORTIX_SOURCE)
|
#if defined(_SORTIX_SOURCE) || defined(_SORTIX_ALWAYS_SBRK)
|
||||||
@include(intn_t.h)
|
@include(intn_t.h)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -177,6 +179,8 @@ size_t getpagesize(void);
|
||||||
int memstat(size_t* memused, size_t* memtotal);
|
int memstat(size_t* memused, size_t* memtotal);
|
||||||
int uptime(uintmax_t* usecssinceboot);
|
int uptime(uintmax_t* usecssinceboot);
|
||||||
int writeall(int fd, const void* buffer, size_t len);
|
int writeall(int fd, const void* buffer, size_t len);
|
||||||
|
#endif
|
||||||
|
#if defined(_SORTIX_SOURCE) || defined(_SORTIX_ALWAYS_SBRK)
|
||||||
void* sbrk(intptr_t increment);
|
void* sbrk(intptr_t increment);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue