Browse Source

More incoherency between MacOSX and Linux...

Manoel Trapier 11 years ago
parent
commit
60b5f91561
4 changed files with 6 additions and 3 deletions
  1. 1 0
      h/missing_proto.h
  2. 2 2
      util/amisc/astrip.c
  3. 1 1
      util/led/memory.c
  4. 2 0
      util/ncgg/output.c

+ 1 - 0
h/missing_proto.h

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

+ 2 - 2
util/amisc/astrip.c

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

+ 1 - 1
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;

+ 2 - 0
util/ncgg/output.c

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