- Fix build on 5.x and unbreak

PR:		ports/66488
Submitted by:	Arne Woerner <arne_woerner@yahoo.com>
This commit is contained in:
Pav Lucistnik 2004-05-11 09:28:50 +00:00
parent 28d24d2e67
commit 9efe26073b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108911
2 changed files with 13 additions and 13 deletions

View file

@ -45,10 +45,6 @@ MANCOMPRESSED= no
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500113
BROKEN= "Does not compile (bad C++ code)"
.endif
CFLAGS+= -D__BSD_VISIBLE=1
CONFIGURE_ARGS+= --with-i18n --disable-pedantic --without-perl

View file

@ -1,14 +1,18 @@
$FreeBSD$
--- src/symboltable.cc.orig Fri Feb 21 23:32:21 2003
+++ src/symboltable.cc Fri Feb 21 23:35:23 2003
@@ -13,6 +13,8 @@
--- src/symboltable.cc.orig Tue Nov 13 16:48:07 2001
+++ src/symboltable.cc Tue May 11 11:19:40 2004
@@ -7,11 +7,15 @@
* $Id: symboltable.cc,v 2.2 2001/10/18 01:38:55 arensb Exp $
*/
+#include <stdio.h>
+#include <wchar.h>
#include "config.h"
#include <string>
#include <map>
#include <cstdlib> // For malloc() and friends
#include "symboltable.h"
+using namespace std;
+
+using namespace std;
static char *make_c_string(const string &s);
map<string,string> table; /* XXX - Is this going to cause problems on