diff -Nru lsscsi-0.27/debian/changelog lsscsi-0.27/debian/changelog --- lsscsi-0.27/debian/changelog 2013-05-25 03:03:40.000000000 +0000 +++ lsscsi-0.27/debian/changelog 2013-06-09 10:04:06.000000000 +0000 @@ -1,3 +1,11 @@ +lsscsi (0.27-2) unstable; urgency=low + + * Fix FTBFS on GNU/kFreeBSD and hurd-i386 + If linux is defined then include linux/limits.h otherwise include limits.h + Update FTBFS_kfreebsd.diff + + -- Anibal Monsalve Salazar Sun, 09 Jun 2013 20:04:02 +1000 + lsscsi (0.27-1) unstable; urgency=low * New upstream version 0.27 diff -Nru lsscsi-0.27/debian/patches/FTBFS_kfreebsd.diff lsscsi-0.27/debian/patches/FTBFS_kfreebsd.diff --- lsscsi-0.27/debian/patches/FTBFS_kfreebsd.diff 2013-05-25 03:03:11.000000000 +0000 +++ lsscsi-0.27/debian/patches/FTBFS_kfreebsd.diff 2013-06-09 09:27:20.000000000 +0000 @@ -2,15 +2,29 @@ Subject: Fix FTBFS on kfreebsd by removing obsolete include of linux/major.h Linux devices assignement: http://www.kernel.org/doc/Documentation/devices.txt Similar issue on sysstat: http://bugs.debian.org/395038 + +Updated by Anibal Monsalve Salazar +FTBFS on GNU/kFreeBSD and hurd-i386 with the error message: +lsscsi.c:28:26: fatal error: linux/limits.h: No such file or directory +If the build system has linux defined then include linux/limits.h +otherwise include limits.h. +This is based on a patch by Cyril Brulebois which was posted to Bug#559405 +http://bugs.debian.org/559405 + Forwarded: no --- a/src/lsscsi.c 2013-05-09 09:01:19.000000000 +1000 -+++ b/src/lsscsi.c 2013-05-25 13:01:08.000000000 +1000 -@@ -25,7 +25,6 @@ ++++ b/src/lsscsi.c 2013-06-09 19:14:20.000000000 +1000 +@@ -25,8 +25,11 @@ #include #include #include -#include ++#ifdef linux #include ++#else ++#include ++#endif #include #define __STDC_FORMAT_MACROS 1 + #include