diff options
author | heinz <heinz> | 2007-10-02 20:23:07 +0000 |
---|---|---|
committer | heinz <heinz> | 2007-10-02 20:23:07 +0000 |
commit | 400944502c4698c7db753fb600ca1c0a4b4345e4 (patch) | |
tree | 17d34197840870a4406128798bcdc4f08f56c855 /net/yale-tftpd/patches/patch-af | |
parent | 40374aaccfef3f14938898cfd0db4144aae436fc (diff) | |
download | pkgsrc-400944502c4698c7db753fb600ca1c0a4b4345e4.tar.gz |
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.
Diffstat (limited to 'net/yale-tftpd/patches/patch-af')
-rw-r--r-- | net/yale-tftpd/patches/patch-af | 22 |
1 files changed, 18 insertions, 4 deletions
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 <stdlib.h> #include <strings.h> #include <ctype.h> ++#ifdef HAVE_STRERROR ++#include <string.h> ++#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; + |