mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- Fix build with gcc 4.X
PR: ports/106746 Submitted by: trasz
This commit is contained in:
parent
41ab0bc4df
commit
207e18f79c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179923
@ -21,7 +21,6 @@ MAN8= mpd.8
|
||||
MANCOMPRESSED= maybe
|
||||
|
||||
USE_OPENSSL= yes
|
||||
USE_RC_SUBR= yes
|
||||
MAKE_ENV= COPTS="${COPTS} -I${OPENSSLINC}" LDADD="${LDADD} -L${OPENSSLLIB}"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
10
net/mpd/files/patch-src::iface.h
Normal file
10
net/mpd/files/patch-src::iface.h
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/iface.h.orig Fri Dec 15 01:39:27 2006
|
||||
+++ src/iface.h Fri Dec 15 01:40:35 2006
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "mbuf.h"
|
||||
#include "timer.h"
|
||||
#include "vars.h"
|
||||
+#include "command.h"
|
||||
|
||||
/*
|
||||
* DEFINITIONS
|
20
net/mpd/files/patch-src::radius.c
Normal file
20
net/mpd/files/patch-src::radius.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/radius.c.orig Fri Dec 15 01:42:07 2006
|
||||
+++ src/radius.c Fri Dec 15 01:55:53 2006
|
||||
@@ -922,7 +922,7 @@
|
||||
case RAD_MICROSOFT_MS_CHAP_ERROR:
|
||||
/* there is a nullbyte on the first pos, don't know why */
|
||||
if (((const char *)data)[0] == '\0') {
|
||||
- ((const char *)data)++;
|
||||
+ data+=sizeof(const char);
|
||||
len--;
|
||||
}
|
||||
free(rad->mschap_error);
|
||||
@@ -945,7 +945,7 @@
|
||||
* Only point at the String field if we don't think the
|
||||
* peer has misformatted the response.
|
||||
*/
|
||||
- ((const char *)data)++;
|
||||
+ data+=sizeof(const char);
|
||||
len--;
|
||||
} else
|
||||
Log(LG_RADIUS, ("[%s] RADIUS: %s: Warning: The MS-CHAP2-Success attribute is mis-formatted. Compensating",
|
Loading…
Reference in New Issue
Block a user