summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasudev Kamath <kamathvasudev@gmail.com>2018-08-11 21:21:28 +0530
committerVasudev Kamath <vasudev@copyninja.info>2018-08-11 21:21:28 +0530
commit33e1247aed23fbddfea315464d3f5ceec94ca347 (patch)
treeccffacecd669521963185805e4b41987845274db
parentfbe583594ae03ddfdb1d3654e0220b2670ddf9c9 (diff)
Fix undefined getcwd compiler error
This patch includes unistd.h in non Windows platform which defines getcwd function on *NIX platforms. Last-Update: 2012-12-18 Forwarded: no Gbp-Pq: Name 1001_fix-getcwd-error.patch
-rw-r--r--src/CTPP2FileSourceLoader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CTPP2FileSourceLoader.cpp b/src/CTPP2FileSourceLoader.cpp
index 5bb4f66..dc3e07f 100644
--- a/src/CTPP2FileSourceLoader.cpp
+++ b/src/CTPP2FileSourceLoader.cpp
@@ -42,6 +42,8 @@
#ifdef WIN32
#include <direct.h> /* getcwd */
#include <windows.h>
+#else
+ #include <unistd.h> /* getcwd */
#endif
/**