live-bootstrap/sysa/bash-2.05b/patches/tinycc.patch

27 lines
639 B
Diff

int name, namelen; is wrong for mes libc, it is char* name, so we modify tinycc
to reflect this.
diff --git lib/sh/oslib.c lib/sh/oslib.c
index 90d7be9..37fdf2a 100644
--- lib/sh/oslib.c
+++ lib/sh/oslib.c
@@ -192,8 +192,7 @@ bzero (s, n)
# include <sys/utsname.h>
int
gethostname (name, namelen)
- char *name;
- int namelen;
+ char *name; int namelen;
{
int i;
struct utsname ut;
@@ -209,7 +208,7 @@ gethostname (name, namelen)
# else /* !HAVE_UNAME */
int
gethostname (name, namelen)
- int name, namelen;
+ char* name; int namelen;
{
strncpy (name, "unknown", namelen);
name[namelen] = '\0';