Files
sc/sc-fix-malloc-redefinition.patch

19 lines
352 B
Diff

Index: sc-7.16/xmalloc.c
===================================================================
--- sc-7.16.orig/xmalloc.c
+++ sc-7.16/xmalloc.c
@@ -3,12 +3,10 @@
* $Revision: 7.16 $
*/
+#include <stdlib.h>
#include <curses.h>
#include "sc.h"
-extern char *malloc();
-extern char *realloc();
-extern void free();
void fatal();
#ifdef SYSV3