Package: nrss
Version: 0.3.9-1
Severity: normal

Hi,

nrss currently fails to build on Debian GNU/Hurd. Attached is a patch to resolve this, that I think is a little more sensible than the current code.

Thank you,

Barry deFreese


--- nrss-0.3.9.orig/utility.c
+++ nrss-0.3.9/utility.c
@@ -7,7 +7,8 @@
 */
 #include "nrss.h"
 
-#ifdef BSD
+/*#ifdef BSD*/
+#if !defined(__GLIBC__)
 char *strndup(const char *line, int len)
 {
     char *buf = xmalloc(len + 1);
only in patch2:
unchanged:
--- nrss-0.3.9.orig/cnf/cnf.c
+++ nrss-0.3.9/cnf/cnf.c
@@ -14,7 +14,7 @@
 
 #include "cnf.h"
 
-#ifdef BSD
+#if !defined(__GLIBC__)
 
 int getline(char **line, size_t * len, FILE * fp)
 {

Reply via email to