pkgsrc/www/ap2-auth-xradius/patches/patch-ab

16 lines
589 B
Text

$NetBSD: patch-ab,v 1.1 2007/11/30 20:46:19 rillig Exp $
Recent NetBSD versions also have strsep.
--- libradius/radlib.c.orig 2005-07-05 18:35:32.000000000 +0000
+++ libradius/radlib.c 2007-11-30 20:43:58.000000000 +0000
@@ -60,7 +60,8 @@ static int put_raw_attr(struct xrad_han
static int split(char *, char *[], int, char *, size_t);
#if !defined(__FreeBSD__) && !defined(__linux__)
-static char *strsep(char **stringp, const char *delim)
+static char *my_strsep(char **stringp, const char *delim)
+#define strsep(a,b) my_strsep((a),(b))
{
char *s;
const char *spanp;