Package: picprog Version: 1.9.1-2 Severity: normal User: bdefre...@debian.org Usertags: hurd Tags: patch
Hi, Currently picprog fails to build on Debian GNU/Hurd. Hurd does not support iopl even though we have a stub in io.h. The following patch works though I am not sure it is the "best" solution. You obviously must also add hurd-any to debian/control. Thank you, Barry deFreese
Index: picprog-1.9.1/picport.cc =================================================================== --- picprog-1.9.1.orig/picport.cc 2012-05-30 15:04:37.000000000 +0000 +++ picprog-1.9.1/picport.cc 2012-05-30 15:06:03.000000000 +0000 @@ -39,9 +39,11 @@ #include <sys/ioctl.h> -#if defined(__i386__) || defined(__x86_64__) - #include <sys/io.h> - #define HAVE_IOPL +#ifndef __GNU__ + #if defined(__i386__) || defined(__x86_64__) + #include <sys/io.h> + #define HAVE_IOPL + #endif #endif #include <fcntl.h>