Browse files

fix build error when compiling against uclibc(++)

Fixes the following error:

In file included from ZNCString.cpp:10:0:
FileUtils.h: In static member function 'static CString CDir::GetCWD()':
FileUtils.h:246:36: error: 'getcwd' was not declared in this scope

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information...
1 parent fe05574 commit a9f8e6550dc70d9b5afd6dc0ce8fe67b92a8e476 Jonas Gorski committed with psychon Sep 4, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 FileUtils.h
View
1 FileUtils.h
@@ -16,6 +16,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/fcntl.h>
+#include <unistd.h>
#include <vector>
using std::vector;

0 comments on commit a9f8e65

Please sign in to comment.