More incoherency between MacOSX and Linux...

This commit is contained in:
Manoel Trapier 2013-03-20 10:18:01 +01:00 committed by Manoël Trapier
parent b2d6e23b5f
commit 60b5f91561
4 changed files with 6 additions and 3 deletions

View File

@ -3,6 +3,7 @@
#ifdef NOSBRK
void *sbrk(__intptr_t increment);
int brk(void * addr);
#endif
#ifdef NOMKTEMP

View File

@ -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";

View File

@ -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;

View File

@ -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)