openbsd-ports/net/icb/patches/patch-glob_tilde_c

21 lines
588 B
Plaintext

$OpenBSD: patch-glob_tilde_c,v 1.2 2010/05/22 14:23:48 espie Exp $
--- glob/tilde.c.orig Fri Feb 24 22:20:46 1995
+++ glob/tilde.c Sat May 22 16:19:19 2010
@@ -28,6 +28,7 @@
#endif
#include <pwd.h>
+#include <stdlib.h>
#ifndef savestring
#define savestring(x) (char *)strcpy ((char *)xmalloc (1 + strlen (x)), (x))
@@ -41,7 +42,7 @@ typedef int Function ();
#if defined (TEST)
static char *xmalloc (), *xrealloc ();
#else
-extern char *malloc (), *xrealloc ();
+extern char *xrealloc ();
#endif /* TEST */
/* The default value of tilde_additional_prefixes. This is set to