diff options
author | Juergen Lock <nox@FreeBSD.org> | 2007-11-02 22:55:27 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2007-11-02 22:55:27 +0000 |
commit | 2fc6fc0887b0a3a5d423a81712921dfe7f1a5c72 (patch) | |
tree | 6bc88147ca157f7b98f99becc9ab3ec3cbdc4ca1 /net/tac_plus-libradius | |
parent | 52613f1e629222c82341da06c382cfd521a68ec0 (diff) | |
download | ports-2fc6fc0887b0a3a5d423a81712921dfe7f1a5c72.tar.gz ports-2fc6fc0887b0a3a5d423a81712921dfe7f1a5c72.zip |
Fix build with GCC 4.2
PR: ports/117576
Submitted by: nox
Approved by: portmgr (linimon, pav)
Notes
Notes:
svn path=/head/; revision=202488
Diffstat (limited to 'net/tac_plus-libradius')
-rw-r--r-- | net/tac_plus-libradius/Makefile | 4 | ||||
-rw-r--r-- | net/tac_plus-libradius/files/patch-ab | 40 |
2 files changed, 23 insertions, 21 deletions
diff --git a/net/tac_plus-libradius/Makefile b/net/tac_plus-libradius/Makefile index 8435367f5cfe..f2ec2ce1deb9 100644 --- a/net/tac_plus-libradius/Makefile +++ b/net/tac_plus-libradius/Makefile @@ -25,10 +25,6 @@ MAN1= tac_plus.1 .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/tac_plus ${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/tac_plus.1 ${PREFIX}/man/man1/tac_plus.1 diff --git a/net/tac_plus-libradius/files/patch-ab b/net/tac_plus-libradius/files/patch-ab index b8b7730892fa..1ddb87ba27df 100644 --- a/net/tac_plus-libradius/files/patch-ab +++ b/net/tac_plus-libradius/files/patch-ab @@ -1,17 +1,23 @@ -*** config.c Fri Mar 16 10:04:27 2001 ---- ../../tac_plus.F5.0.0.alpha/config.c Sun Jan 20 19:49:48 2002 -*************** -*** 603,608 **** ---- 603,614 ---- - authen_default_method = sym_code; - break; - #endif -+ #ifdef USE_RADIUS -+ case S_radius: -+ fprintf(stderr,"sym_code=%i, radius\n",sym_code); -+ authen_default_method = sym_code; -+ break; -+ #endif - - - default: +Index: config.c +@@ -109,7 +109,7 @@ + static int no_user_dflt = 0; /* default if user doesn't exist */ + static char *authen_default = NULL; /* top level authentication default */ + static int authen_default_method = 0; /*For method check */ +-static char *nopasswd_str = "nopassword"; ++char *nopasswd_str = "nopassword"; + + /* A host definition structure. Currently unused, but when we start + configuring host-specific information e.g. per-host keys, this is +@@ -602,6 +602,12 @@ + fprintf(stderr,"sym_code=%i, ldap\n",sym_code); + authen_default_method = sym_code; + break; ++#endif ++#ifdef USE_RADIUS ++ case S_radius: ++ fprintf(stderr,"sym_code=%i, radius\n",sym_code); ++ authen_default_method = sym_code; ++ break; + #endif + + |