avoid __malloc name clash; from star 1.5.x

This commit is contained in:
naddy 2006-12-30 20:25:59 +00:00
parent b6f703a7b9
commit d187595079
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-include_schily_h,v 1.1 2006/12/30 20:25:59 naddy Exp $
--- include/schily.h.orig Sat Dec 30 20:56:06 2006
+++ include/schily.h Sat Dec 30 20:57:57 2006
@@ -290,6 +290,10 @@ extern int _openfd64 __PR((const char *,
#endif
#endif
+#define __malloc js_malloc
+#define __realloc js_realloc
+#define __savestr js_savestr
+
#ifdef __cplusplus
}
#endif

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-star_names_c,v 1.1 2006/12/30 20:25:59 naddy Exp $
--- star/names.c.orig Sat Dec 30 21:14:51 2006
+++ star/names.c Sat Dec 30 21:15:21 2006
@@ -31,6 +31,7 @@ static char sccsid[] =
#include <pwd.h>
#include <grp.h>
#include <strdefs.h>
+#include <schily.h>
#include "starsubs.h"
#define C_SIZE 16