Package: newsbeuter
Version: 2.0-1
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

your package needs a little tweak to become buildable on GNU/kFreeBSD,
which you'll find attached.

Thanks for considering.

Mraw,
KiBi.
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,8 @@ PODBEUTER_SOURCES:=$(shell cat podbeuter
 PODBEUTER_OBJS:=$(patsubst %.cpp,%.o,$(PODBEUTER_SOURCES))
 PODBEUTER_LIBS=-lbeuter -lstfl -lncursesw -lpthread
 
-ifneq ($(shell uname -s),Linux)
+# On non-Linux/GLIBC platforms:
+ifeq (, $(filter Linux GNU GNU/%, $(shell uname -s)))
 NEWSBEUTER_LIBS+=-liconv -lintl
 PODBEUTER_LIBS+=-liconv -lintl
 endif
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -261,7 +261,7 @@ std::string utils::convert_text(const st
  * of all the Unix-like systems around there, only Linux/glibc seems to 
  * come with a SuSv3-conforming iconv implementation.
  */
-#ifndef __linux
+#if !defined(__linux) && !defined(__GLIBC__)
        const char * inbufp;
 #else
        char * inbufp;

Reply via email to