Package: unworkable Version: 0.51-5 Severity: important Tags: patch User: debian-...@lists.debian.org Usertags: kfreebsd
Hi, the current version fails to build on GNU/kFreeBSD. It needs small tweaks for GNUmakefile and torrent.c, see bellow. The change in torrent.c is add " || defined(__GLIBC__)" and move conditional inclusion after all standard headers. It would also be nice if you can ask upstream to include this changes. Thanks in advance Petr diff -u unworkable-0.51/GNUmakefile unworkable-0.51/GNUmakefile --- unworkable-0.51/GNUmakefile +++ unworkable-0.51/GNUmakefile @@ -27,7 +27,7 @@ SRCS=$(wildcard *.c *.y) LIBS=-levent -lcrypto UNAME=$(shell uname) -ifeq ($(UNAME),Linux) +ifneq (, $(filter Linux GNU GNU/%, $(UNAME))) SRCS+=openbsd-compat/strlcpy.c SRCS+=openbsd-compat/strlcat.c SRCS+=openbsd-compat/sha1.c only in patch2: unchanged: --- unworkable-0.51.orig/torrent.c +++ unworkable-0.51/torrent.c @@ -15,15 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#if defined(__linux__) || defined(__CYGWIN__) -#include <sys/file.h> -#endif - -/* solaris 10 */ -#if defined(__SVR4) && defined(__sun) -#include "/usr/ucbinclude/sys/file.h" -#endif - #include <sys/types.h> #include <sys/mman.h> #include <sys/param.h> @@ -41,6 +32,15 @@ #include <time.h> #include <unistd.h> +#if defined(__linux__) || defined(__CYGWIN__) || defined(__GLIBC__) +#include <sys/file.h> +#endif + +/* solaris 10 */ +#if defined(__SVR4) && defined(__sun) +#include "/usr/ucbinclude/sys/file.h" +#endif + #include "includes.h" -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org