From: Manoel Trapier Date: Wed, 20 Mar 2013 09:18:01 +0000 (+0100) Subject: More incoherency between MacOSX and Linux... X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=60b5f915610b675d048413777029e587063ea733;p=ack.git More incoherency between MacOSX and Linux... --- diff --git a/h/missing_proto.h b/h/missing_proto.h index c6fc67de9..0f62d5454 100644 --- a/h/missing_proto.h +++ b/h/missing_proto.h @@ -3,6 +3,7 @@ #ifdef NOSBRK void *sbrk(__intptr_t increment); +int brk(void * addr); #endif #ifdef NOMKTEMP diff --git a/util/amisc/astrip.c b/util/amisc/astrip.c index 0870707dc..a50db1830 100644 --- a/util/amisc/astrip.c +++ b/util/amisc/astrip.c @@ -13,10 +13,10 @@ #include #include "out.h" #include "object.h" -/* +#include +/* astrip -- remove symbols and relocation bits - */ char temp_name[] = "/tmp/sXXXXXX"; diff --git a/util/led/memory.c b/util/led/memory.c index 742de35d0..8f7a8a2b4 100644 --- a/util/led/memory.c +++ b/util/led/memory.c @@ -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; diff --git a/util/ncgg/output.c b/util/ncgg/output.c index 163f1efde..55d7587ff 100644 --- a/util/ncgg/output.c +++ b/util/ncgg/output.c @@ -40,6 +40,8 @@ char *cd_file= "code"; #include "regvar.h" #include "extern.h" +#include + /* Since isascii is not standard, as c89 or C99, privide another method */ #define IsAscii(_c) (((_c) & ~0x7f) == 0)