Package: sane-backends
Version: 1.0.22-1
Severity: important
Tags: patch
User: [email protected]
Usertags: hurd

Hi,

currently[1], sane-backends fails to build on GNU/Hurd.
The problem is an unconditional usage of PATH_MAX, which the attached patch
"fixes" in the same way as done with other PATH_MAX occurrences in
sane-backend's code (i.e. defining it if not defined).

[1] 
https://buildd.debian.org/fetch.cgi?pkg=sane-backends&arch=hurd-i386&ver=1.0.22-1&stamp=1297986341&file=log&as=raw

Thanks,
-- 
Pino
Author: Pino Toscano <[email protected]>
Description: fix PATH_MAX occurrency

Index: sane-backends-1.0.22/frontend/saned.c
===================================================================
--- sane-backends-1.0.22.orig/frontend/saned.c	2011-03-03 10:57:59.000000000 +0100
+++ sane-backends-1.0.22/frontend/saned.c	2011-03-03 10:58:40.000000000 +0100
@@ -209,6 +209,10 @@
 # define MAXHOSTNAMELEN 120
 #endif
 
+#ifndef PATH_MAX
+# define PATH_MAX       1024
+#endif
+
 struct saned_child {
   pid_t pid;
   struct saned_child *next;

Reply via email to