pkgsrc/net/yale-tftpd/patches/patch-ae
joerg 241693628a Deorbit some pre-ANSI crap which breaks on DragonFly:
- errno from errno.h
- calloc and malloc from stdlib.h
- strdup from string.h
2005-12-18 18:37:16 +00:00

19 lines
450 B
Text

$NetBSD: patch-ae,v 1.2 2005/12/18 18:37:16 joerg Exp $
--- classes/access.c.orig 1994-10-05 05:20:44.000000000 +0000
+++ classes/access.c
@@ -1,4 +1,6 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -92,7 +94,6 @@ AccessGroup
accessGroup_new ()
{
AccessGroup self;
- extern char* calloc();
self = (AccessGroup)calloc (1, sizeof (*self));
return self;