Bug#490638: wesnoth: FTBFS on GNU/kFreeBSD (one line fixup in src/network_worker.hpp)
Petr Salinger
Petr.Salinger at seznam.cz
Sun Jul 13 09:52:13 UTC 2008
Package: wesnoth
Severity: important
Version: 1:1.4.3-1
Tags: patch
User: glibc-bsd-devel at lists.alioth.debian.org
Usertags: kfreebsd
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs small tweak in src/network_worker.hpp, see bellow.
In fact the comment is right one, but it is not implemented
by checking appropriate defines. The glibc is not used only by linux.
It would also be nice if you can ask upstream
to include this change.
Thanks in advance
Petr
--- src/network_worker.hpp~ 2008-07-13 11:09:28.000000000 +0000
+++ src/network_worker.hpp 2008-07-13 11:09:28.000000000 +0000
@@ -17,7 +17,7 @@
// Check if sendfile function is implemented by glibc
// It is linux only extension
-#ifdef __GNUC_PREREQ
+#if defined(__linux__) && defined(__GNUC_PREREQ)
#if __GNUC_PREREQ(2,1)
#define USE_SENDFILE
#endif
More information about the Pkg-games-devel
mailing list