More incoherency between MacOSX and Linux...
This commit is contained in:
parent
b2d6e23b5f
commit
60b5f91561
@ -3,6 +3,7 @@
|
||||
|
||||
#ifdef NOSBRK
|
||||
void *sbrk(__intptr_t increment);
|
||||
int brk(void * addr);
|
||||
#endif
|
||||
|
||||
#ifdef NOMKTEMP
|
||||
|
||||
@ -13,10 +13,10 @@
|
||||
#include <signal.h>
|
||||
#include "out.h"
|
||||
#include "object.h"
|
||||
|
||||
#include <missing_proto.h>
|
||||
/*
|
||||
|
||||
astrip -- remove symbols and relocation bits
|
||||
|
||||
*/
|
||||
|
||||
char temp_name[] = "/tmp/sXXXXXX";
|
||||
|
||||
@ -56,7 +56,7 @@ int sbreak(ind_t incr)
|
||||
if ((refused && refused < incr) ||
|
||||
(sizeof(char *) < sizeof(long) &&
|
||||
(inc != incr || BASE + inc < BASE)) ||
|
||||
brk(BASE + incr) == (void *)-1) {
|
||||
(void *)brk(BASE + incr) == (void *)-1) {
|
||||
if (!refused || refused > incr)
|
||||
refused = incr;
|
||||
return -1;
|
||||
|
||||
@ -40,6 +40,8 @@ char *cd_file= "code";
|
||||
#include "regvar.h"
|
||||
#include "extern.h"
|
||||
|
||||
#include <missing_proto.h>
|
||||
|
||||
/* Since isascii is not standard, as c89 or C99, privide another method */
|
||||
#define IsAscii(_c) (((_c) & ~0x7f) == 0)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user