From de324ac57e8bdf4c42ef54dd0782e4383c4a3520 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 7 Jul 2008 18:40:03 +0000 Subject: [PATCH] - Unbreak - Fix build with gcc 4.2 PR: 125207 Submitted by: Alex Keda (maintainer) --- www/mod_ntlm2/Makefile | 4 ---- www/mod_ntlm2/files/patch-smbval-smblib.inc.c | 24 +++++++++++++++---- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/www/mod_ntlm2/Makefile b/www/mod_ntlm2/Makefile index c225233d9ce8..34420befc226 100644 --- a/www/mod_ntlm2/Makefile +++ b/www/mod_ntlm2/Makefile @@ -22,8 +22,4 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/smbclient:${PORTSDIR}/net/samba3 .include -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile -.endif - .include diff --git a/www/mod_ntlm2/files/patch-smbval-smblib.inc.c b/www/mod_ntlm2/files/patch-smbval-smblib.inc.c index 4a985c6182b2..69b926c42998 100644 --- a/www/mod_ntlm2/files/patch-smbval-smblib.inc.c +++ b/www/mod_ntlm2/files/patch-smbval-smblib.inc.c @@ -1,11 +1,25 @@ ---- smbval/smblib.inc.c.orig Wed Sep 26 12:42:22 2007 -+++ smbval/smblib.inc.c Wed Sep 26 12:43:08 2007 -@@ -20,7 +20,7 @@ +--- smbval/smblib.inc.c.orig 2008-07-03 01:44:33.000000000 +0400 ++++ smbval/smblib.inc.c 2008-07-03 01:45:18.000000000 +0400 +@@ -20,10 +20,10 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ #include -#include +#include - static int SMBlib_errno; - static int SMBlib_SMB_Error; +-static int SMBlib_errno; +-static int SMBlib_SMB_Error; ++int SMBlib_errno; ++int SMBlib_SMB_Error; + #define SMBLIB_ERRNO + #define uchar unsigned char + #include "smblib-priv.h" +@@ -32,7 +32,7 @@ + + #include + +-static SMB_State_Types SMBlib_State; ++SMB_State_Types SMBlib_State; + + /* Initialize the SMBlib package */ + static int