The prototypes difference between platform is really annoying, since it's hard to always match the system on, and prevent warning on bad types. I try now to always use BRK emulation on all platform that do not match the prototype used in ACK. the PM script should be changed to set this correctly during setup.
29 lines
408 B
C
29 lines
408 B
C
#ifndef H_MISSING_PROTO_H
|
|
#define H_MISSING_PROTO_H
|
|
|
|
#ifdef NOSBRK
|
|
void *sbrk(__intptr_t increment);
|
|
void *brk(void * addr);
|
|
#endif
|
|
|
|
#ifdef NOMKTEMP
|
|
char *mktemp(char *template);
|
|
#endif
|
|
|
|
#ifdef EMULATE_BRK
|
|
void *sbrk_emu(int increment);
|
|
void *brk_emu(const void * addr);
|
|
|
|
#ifdef sbrk
|
|
#undef sbrk
|
|
#endif
|
|
#ifdef brk
|
|
#undef brk
|
|
#endif
|
|
|
|
#define sbrk sbrk_emu
|
|
#define brk brk_emu
|
|
|
|
#endif
|
|
|
|
#endif /* H_MISSING_H */ |