summaryrefslogtreecommitdiff
path: root/games/xye/patches/patch-src_gen.cpp
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-06-13 21:42:22 +0000
committerjoerg <joerg@pkgsrc.org>2013-06-13 21:42:22 +0000
commit263a9d4a1a474e5dbb3cd5e65db1afbb4c3fa873 (patch)
tree636de1712170cd34fa8e91c31378682a891556be /games/xye/patches/patch-src_gen.cpp
parentfed51c1bee26dc527ef6b06a94461a2139787581 (diff)
downloadpkgsrc-263a9d4a1a474e5dbb3cd5e65db1afbb4c3fa873.tar.gz
Fix redefinition in the same scope. Add missing unistd.h.
Diffstat (limited to 'games/xye/patches/patch-src_gen.cpp')
-rw-r--r--games/xye/patches/patch-src_gen.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/xye/patches/patch-src_gen.cpp b/games/xye/patches/patch-src_gen.cpp
index fa2f3b8188d..bc93f1c9486 100644
--- a/games/xye/patches/patch-src_gen.cpp
+++ b/games/xye/patches/patch-src_gen.cpp
@@ -1,12 +1,13 @@
-$NetBSD: patch-src_gen.cpp,v 1.2 2013/06/09 06:30:14 ryoon Exp $
+$NetBSD: patch-src_gen.cpp,v 1.3 2013/06/13 21:42:22 joerg Exp $
---- src/gen.cpp.orig 2013-06-09 06:21:13.000000000 +0000
+--- src/gen.cpp.orig 2013-06-13 19:51:44.000000000 +0000
+++ src/gen.cpp
-@@ -21,6 +21,7 @@ Permission is granted to anyone to use t
+@@ -21,6 +21,8 @@ Permission is granted to anyone to use t
#include<cstdio>
#include<iostream>
#include<fstream>
+#include<ctime>
++#include <unistd.h>
const float F_RAND_MAX = (float)(RAND_MAX);