From 400944502c4698c7db753fb600ca1c0a4b4345e4 Mon Sep 17 00:00:00 2001 From: heinz Date: Tue, 2 Oct 2007 20:23:07 +0000 Subject: Added compatibility fixes for NetBSD/FreeBSD/Linux/Solaris provided by Yakovetsky Vladimir in PR pkg/36942. Shut up warning by pkglint (PLIST). Introduced PKGMANDIR in software Makefile. --- net/yale-tftpd/patches/patch-af | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'net/yale-tftpd/patches/patch-af') diff --git a/net/yale-tftpd/patches/patch-af b/net/yale-tftpd/patches/patch-af index b4bdd19c0c0..571066329e9 100644 --- a/net/yale-tftpd/patches/patch-af +++ b/net/yale-tftpd/patches/patch-af @@ -1,16 +1,21 @@ -$NetBSD: patch-af,v 1.2 2005/12/18 18:37:16 joerg Exp $ +$NetBSD: patch-af,v 1.3 2007/10/02 20:23:08 heinz Exp $ ---- classes/config.c.orig 1994-10-05 05:18:21.000000000 +0000 +--- classes/config.c.orig 1994-10-05 06:18:21.000000000 +0100 +++ classes/config.c -@@ -1,6 +1,7 @@ +@@ -1,8 +1,12 @@ #define CLASS_Config_PRIVATE #include "config.h" +#include #include #include ++#ifdef HAVE_STRERROR ++#include ++#endif -@@ -35,10 +36,6 @@ static Config config_expand(); + #define DFLT_NFIELDS 10 + #define START_FIELD(S) \ +@@ -35,10 +39,6 @@ static Config config_expand(); static unsigned char* config_copy(); static unsigned char* get_quoted_string(); @@ -21,3 +26,12 @@ $NetBSD: patch-af,v 1.2 2005/12/18 18:37:16 joerg Exp $ static int dflt_options = CFG_OPT_UCASE; Config +@@ -130,7 +130,7 @@ char* buf; + switch (type) { + case BRK_QUOTE: + START_FIELD(to); +- fr = get_quoted_string (*fr, fr+1, &to); ++ fr = get_quoted_string (*fr, fr+1, (char**)&to); + fr++; /* skip terminating quote */ + break; + -- cgit v1.2.3