More incoherency between MacOSX and Linux...
authorManoel Trapier <godzil@godzil.net>
Wed, 20 Mar 2013 09:18:01 +0000 (10:18 +0100)
committerManoël Trapier <godzil@MacBook-Pro.home>
Wed, 24 Jun 2015 22:41:47 +0000 (23:41 +0100)
h/missing_proto.h
util/amisc/astrip.c
util/led/memory.c
util/ncgg/output.c

index c6fc67d..0f62d54 100644 (file)
@@ -3,6 +3,7 @@
 
 #ifdef NOSBRK
 void *sbrk(__intptr_t increment);
+int   brk(void * addr);
 #endif
 
 #ifdef NOMKTEMP
index 0870707..a50db18 100644 (file)
 #include <signal.h>
 #include "out.h"
 #include "object.h"
-/*
 
+#include <missing_proto.h>
+/*
        astrip -- remove symbols and relocation bits
-
 */
 
 char   temp_name[] = "/tmp/sXXXXXX";
index 742de35..8f7a8a2 100644 (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;
index 163f1ef..55d7587 100644 (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)