MFH: r352923
Import upstream commit to fix the build with recent versions of GCC. getcwd(3) needs unistd.h. Approved by: portmgr (erwin)
This commit is contained in:
parent
3a858b0df3
commit
ce13c494ce
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2014Q2/; revision=352932
1 changed files with 19 additions and 0 deletions
19
net-p2p/verlihub/files/patch-src__stringutils.cpp
Normal file
19
net-p2p/verlihub/files/patch-src__stringutils.cpp
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
commit 4d6a2ebf7e47b2854fdf4a9cc7daec625b035b3c
|
||||||
|
Author: Nimesh Ghelani <nimeshghelani@gmail.com>
|
||||||
|
Date: Sat Nov 10 01:47:07 2012 +0530
|
||||||
|
|
||||||
|
added unistd.h to stringutils.cpp causing compilation error
|
||||||
|
|
||||||
|
diff --git a/src/stringutils.cpp b/src/stringutils.cpp
|
||||||
|
index 35d7d46..b020a79 100755
|
||||||
|
--- src/stringutils.cpp
|
||||||
|
+++ src/stringutils.cpp
|
||||||
|
@@ -32,6 +32,8 @@
|
||||||
|
#include <ctype.h>
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
+#else
|
||||||
|
+#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace nVerliHub {
|
Loading…
Reference in a new issue