[Pkg-running-devel] [antpm] 30/48: try fixing FTBFS under hurd-i386, kfreebsd-amd64, kfreebsd-i386

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Mon Aug 11 10:10:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch upstream
in repository antpm.

commit bf990a5e81f2af5c33583cc500eb655ad1bf173d
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Thu Mar 27 09:42:48 2014 +0100

    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
---
 src/Log.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git



More information about the Pkg-running-devel mailing list