Do not depend on include files too much
authorceriel <none@none>
Fri, 25 Oct 1991 11:16:56 +0000 (11:16 +0000)
committerceriel <none@none>
Fri, 25 Oct 1991 11:16:56 +0000 (11:16 +0000)
mach/sparc/ce/cache.c.x

index 08cf96d..859e5a0 100644 (file)
@@ -1,12 +1,17 @@
 /* cache.c */
 
 #include <stdio.h>
-#include </usr/include/assert.h>
-#include <malloc.h>
-#include <string.h>
-#include <strings.h>
+#include <assert.h>
 #include "mach.h"
 
+#ifdef __STDC__
+#include <stdlib.h>
+#include <string.h>
+#else
+extern char *malloc();
+extern char *strcpy();
+#endif
+
 #define free_reg_num(i) if (1) { assert(reg[i].inuse > 0); reg[i].inuse--; if (debug) fprintf(stderr,"free_reg(%s)\n", regnam[i]); } else
 
 #define POP1 cache_need(1);