mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
security/openvpn-auth-radius: fix build on 11.2-RELEASE
PR: 229456 Submitted by: nicolas@deffayet.com Approved by: maintainer, pi (mentor) MFC after: 2018Q3 Sponsored by: HAW International, Inc. Differential Revision: https://reviews.freebsd.org/D16135
This commit is contained in:
parent
d8568dba0c
commit
05aaf43c5a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474240
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= openvpn-auth-radius
|
||||
PORTVERSION= 2.1
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.nongnu.org/radiusplugin/ \
|
||||
http://svn-cache.ipcopaddons.org/
|
||||
|
@ -1,9 +1,8 @@
|
||||
--- ./Makefile.bsd.orig 2010-04-06 19:07:33.000000000 +0200
|
||||
+++ ./Makefile.bsd 2014-01-03 11:29:36.000000000 +0100
|
||||
--- Makefile.bsd.orig 2010-04-06 17:07:33 UTC
|
||||
+++ Makefile.bsd
|
||||
@@ -1,4 +1,4 @@
|
||||
-CC=g++
|
||||
+CC?=g++
|
||||
INCL=-I/usr/local/include
|
||||
LDFLAGS=-L/usr/local/lib
|
||||
LIBS=-lgcrypt -lgpg-error -lstdc++ -lm -lpthread
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- RadiusClass/RadiusPacket.cpp.orig 2010-01-31 14:34:02 UTC
|
||||
+++ RadiusClass/RadiusPacket.cpp
|
||||
@@ -442,7 +442,7 @@ int RadiusPacket::radiusSend(list<Radius
|
||||
cliAddr.sin_port=htons(0);
|
||||
|
||||
//Bind the socket port,
|
||||
- if(bind(socket2Radius,(struct sockaddr*)&cliAddr,sizeof(struct sockaddr))<0)
|
||||
+ if(::bind(socket2Radius,(struct sockaddr*)&cliAddr,sizeof(struct sockaddr))<0)
|
||||
{
|
||||
cerr << "Cannot bind port: " << strerror(errno) << "\n";
|
||||
socket2Radius=-1;
|
Loading…
Reference in New Issue
Block a user