summaryrefslogtreecommitdiff
path: root/src/Log.hpp
diff options
context:
space:
mode:
authorRALOVICH, Kristof <tade60@freemail.hu>2014-03-27 09:42:48 +0100
committerRALOVICH, Kristof <tade60@freemail.hu>2014-03-27 09:42:48 +0100
commitbf990a5e81f2af5c33583cc500eb655ad1bf173d (patch)
treee6626eb31e90e88628aae01682f4b069073fb17a /src/Log.hpp
parent3a65b419a784706b2bdd2e63cefc16eb19104a90 (diff)
try fixing FTBFS under hurd-i386, kfreebsd-amd64, kfreebsd-i386
from /«PKGBUILDDIR»/src/common.cpp:20: /«PKGBUILDDIR»/src/Log.hpp: In constructor 'antpm::Log::Log(const char*)': /«PKGBUILDDIR»/src/Log.hpp:176:8: error: '::access' has not been declared if(::access(logFileName, 0x00) != -1) ^ make[4]: *** [CMakeFiles/antpm.dir/common.cpp.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/«PKGBUILDDIR»/cmake-build' make[3]: *** [CMakeFiles/antpm.dir/all] Error 2 make[3]: Leaving directory `/«PKGBUILDDIR»/cmake-build' make[2]: *** [all] Error 2 make[2]: Leaving directory `/«PKGBUILDDIR»/cmake-build' make[1]: *** [override_dh_auto_build] Error 2 make[1]: Leaving directory `/«PKGBUILDDIR»' make: *** [build-arch] Error 2
Diffstat (limited to 'src/Log.hpp')
-rw-r--r--src/Log.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Log.hpp b/src/Log.hpp
index 066b758..f2c1f72 100644
--- a/src/Log.hpp
+++ b/src/Log.hpp
@@ -29,7 +29,7 @@
# include <crtdbg.h>
# include <io.h>
#endif
-#ifdef __linux__
+#if defined(__linux__) || defined(__GNU__) || defined(__FreeBSD__)
# include <unistd.h>
#endif
#include <iostream>