fix build for gcc4

This commit is contained in:
espie 2010-05-23 16:30:03 +00:00
parent 9bed746d32
commit 3ef8e44cca
3 changed files with 17 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.24 2008/07/01 16:41:19 ajacoutot Exp $ # $OpenBSD: Makefile,v 1.25 2010/05/23 16:30:03 espie Exp $
COMMENT= Cistron RADIUS server COMMENT= Cistron RADIUS server
@ -24,7 +24,7 @@ WANTLIB= c
WRKSRC= ${WRKDIST}/src WRKSRC= ${WRKDIST}/src
MAKE_FILE= Makefile.BSD MAKE_FILE= Makefile.BSD
MAKE_FLAGS+= CC="${CC}" LCRYPT="" DBM="-DUSE_DB1" DBMLIBS="" \ MAKE_FLAGS+= CC="${CC}" LCRYPT="" DBM="-DUSE_DB1" DBMLIBS="" \
CFLAGS="${CFLAGS} -DNOSHADOW -DUSE_SYSLOG" CFLAGS="${CFLAGS} -DNOSHADOW -DUSE_SYSLOG -fno-builtin-log"
FAKE_FLAGS+= BINDIR='${WRKINST}${PREFIX}/bin' \ FAKE_FLAGS+= BINDIR='${WRKINST}${PREFIX}/bin' \
SBINDIR='${WRKINST}${PREFIX}/sbin' \ SBINDIR='${WRKINST}${PREFIX}/sbin' \
MANDIR='${WRKINST}${PREFIX}/man' \ MANDIR='${WRKINST}${PREFIX}/man' \

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-src_acct_c,v 1.6 2004/07/12 13:32:11 danh Exp $ $OpenBSD: patch-src_acct_c,v 1.7 2010/05/23 16:30:03 espie Exp $
--- src/acct.c.orig Thu Jul 3 04:09:04 2003 --- src/acct.c.orig Thu Jul 3 10:09:04 2003
+++ src/acct.c Mon Jul 12 08:29:22 2004 +++ src/acct.c Sat May 22 16:48:14 2010
@@ -958,11 +958,11 @@ static int rad_check_ts(struct radutmp * @@ -958,11 +958,11 @@ static int rad_check_ts(struct radutmp *ut)
s = CHECKRAD2; s = CHECKRAD2;
execl(CHECKRAD2, "checkrad", nas->nastype, address, port, execl(CHECKRAD2, "checkrad", nas->nastype, address, port,

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-src_radiusd_h,v 1.1 2010/05/23 16:30:03 espie Exp $
--- src/radiusd.h.orig Sun May 23 18:28:21 2010
+++ src/radiusd.h Sun May 23 18:28:35 2010
@@ -204,7 +204,6 @@ extern char *radutmp_path;
extern char *radwtmp_path;
extern UINT4 expiration_seconds;
extern UINT4 warning_seconds;
-extern int radius_pid;
extern int use_dbm;
extern int use_dns;
extern int use_wtmp;