diff options
author | wiedi <wiedi@pkgsrc.org> | 2014-02-24 12:43:11 +0000 |
---|---|---|
committer | wiedi <wiedi@pkgsrc.org> | 2014-02-24 12:43:11 +0000 |
commit | eb31e3ee44576b6206004c88a66ba3c5df4073bc (patch) | |
tree | 87bbc88a6e58f5664ff9d4cd6200b7b76b5b7e84 | |
parent | 0596e99b16ed9f59227a27b9028a62e30273c151 (diff) | |
download | pkgsrc-eb31e3ee44576b6206004c88a66ba3c5df4073bc.tar.gz |
Define int types and fix "'struct sockaddr_in' has no member named 'sin_len'" on SunOS
-rw-r--r-- | net/libradius/Makefile | 4 | ||||
-rw-r--r-- | net/libradius/distinfo | 3 | ||||
-rw-r--r-- | net/libradius/patches/patch-radlib.c | 23 |
3 files changed, 28 insertions, 2 deletions
diff --git a/net/libradius/Makefile b/net/libradius/Makefile index 84a256705da..efee2151678 100644 --- a/net/libradius/Makefile +++ b/net/libradius/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2012/10/23 17:18:34 asau Exp $ +# $NetBSD: Makefile,v 1.16 2014/02/24 12:43:11 wiedi Exp $ DISTNAME= libradius-linux-20040827 PKGNAME= ${DISTNAME:S/-linux//} @@ -15,6 +15,8 @@ CONFLICTS+= inn-[0-9]* WRKSRC= ${WRKDIR}/libradius-linux +CPPFLAGS.SunOS+= -Du_int32_t=uint32_t + INSTALLATION_DIRS= include lib ${PKGMANDIR}/man3 ${PKGMANDIR}/man5 .include "../../mk/bsd.pkg.mk" diff --git a/net/libradius/distinfo b/net/libradius/distinfo index 468c3f4f43b..6fc830d021a 100644 --- a/net/libradius/distinfo +++ b/net/libradius/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.7 2009/01/31 03:12:33 obache Exp $ +$NetBSD: distinfo,v 1.8 2014/02/24 12:43:11 wiedi Exp $ SHA1 (libradius-linux-20040827.tar.gz) = 27abd1390d16befe290ded70579bfdda8fabe68f RMD160 (libradius-linux-20040827.tar.gz) = 040fb6e3919402c21ffc4dcdb6c7ae2137030489 Size (libradius-linux-20040827.tar.gz) = 15791 bytes SHA1 (patch-aa) = d9849e36d2d075b5a89881b02461a874af342089 +SHA1 (patch-radlib.c) = 96d037616fc02a6cb2f9684003a9e9759e63a504 diff --git a/net/libradius/patches/patch-radlib.c b/net/libradius/patches/patch-radlib.c new file mode 100644 index 00000000000..bfbbf8c5eab --- /dev/null +++ b/net/libradius/patches/patch-radlib.c @@ -0,0 +1,23 @@ +$NetBSD: patch-radlib.c,v 1.1 2014/02/24 12:43:11 wiedi Exp $ + +'struct sockaddr_in' has no member named 'sin_len' on SunOS +--- radlib.c.orig 2004-08-27 06:56:52.000000000 +0000 ++++ radlib.c +@@ -250,7 +250,7 @@ rad_add_server(struct rad_handle *h, con + srvp = &h->servers[h->num_servers]; + + memset(&srvp->addr, 0, sizeof srvp->addr); +-#if !defined(__linux__) ++#if !defined(__linux__) && !defined(__sun) + srvp->addr.sin_len = sizeof srvp->addr; + #endif + srvp->addr.sin_family = AF_INET; +@@ -617,7 +617,7 @@ rad_init_send_request(struct rad_handle + return -1; + } + memset(&sin, 0, sizeof sin); +-#if !defined(__linux__) ++#if !defined(__linux__) && !defined(__sun) + sin.sin_len = sizeof sin; + #endif + sin.sin_family = AF_INET; |