summaryrefslogtreecommitdiff
path: root/games/xevil/patches/patch-ag
blob: b23871d7f809d7965b7ff1b998da1e5245963f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$NetBSD: patch-ag,v 1.1.1.1 2005/01/25 15:59:27 xtraeme 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");