pkgsrc/security/tcp_wrappers/patches/patch-af
peter 383019eeb5 Get rid of the invalid extern for malloc and include stdlib.h for the
prototype. Suggested by Thomas Klausner.

Should fix PR pkg/29362 from A L Meyers.
2005-02-17 23:10:45 +00:00

19 lines
435 B
Text

$NetBSD: patch-af,v 1.1 2005/02/17 23:10:45 peter Exp $
--- scaffold.c.orig 1999-10-27 15:27:22.000000000 +0200
+++ scaffold.c 2005-02-17 23:56:49.000000000 +0100
@@ -20,13 +20,12 @@
#include <syslog.h>
#include <setjmp.h>
#include <string.h>
+#include <stdlib.h>
#ifndef INADDR_NONE
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
#endif
-extern char *malloc();
-
/* Application-specific. */
#include "tcpd.h"