pkgsrc-wip/xevil/patches/patch-ag
Soren Jacobsen a69a50c93b Make compile with gcc3. Change strstream.h to strstream and add "using
namespace std;" patch-am stolen from FreeBSD.
2003-11-28 04:13:24 +00:00

40 lines
795 B
Text

$NetBSD: patch-ag,v 1.1 2003/11/28 04:13:25 blef Exp $
--- cmn/utils.cpp.orig 2003-11-22 11:14:12.000000000 -0800
+++ cmn/utils.cpp 2003-11-22 11:15:38.000000000 -0800
@@ -30,18 +30,20 @@
// Include Files
#include "stdafx.h"
-#include <iostream.h>
-#include <limits.h>
-#include <string.h>
-#include <ctype.h>
-#include <fstream.h>
+#include <iostream>
+#include <climits>
+#include <cstring>
+#include <cctype>
+#include <fstream>
#if WIN32
#include <strstrea.h>
#endif
#if X11
-#include <strstream.h>
+#include <strstream>
#endif
+using namespace std;
+
#ifdef WIN32
// For file manipulation routines.
#include <direct.h>
@@ -475,7 +477,7 @@
#endif
-#define UNAME_PATH "@UNAME@"
+#define UNAME_PATH "/usr/bin/uname"
#ifdef X11
FILE* fp = popen(UNAME_PATH " -a","r");