Package: libdv Version: 1.0.0-2 Severity: important Tags: patch User: debian-h...@lists.debian.org Usertags: hurd
Hi, currently libdv does not compile on GNU/Hurd, because the Hurd-specific _IOT defines for the 'video1394_mmap' and 'video1394_wait' structs (needed for the ioctl) are missing. The attached patch provides them, properly compiled on Hurd only. Thanks, -- Pino
#!/bin/sh -e ## hurd.dpatch by Pino Toscano <toscano.p...@tiscali.it> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Add proper Hurd-specific _IOT defines for the video1394_mmap and ## DP: video1394_wait structs. if [ $# -lt 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts patch_opts="${patch_opts:--f --no-backup-if-mismatch}" case "$1" in -patch) patch $patch_opts -p1 < $0;; -unpatch) patch $patch_opts -p1 -R < $0;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1;; esac exit 0 @DPATCH@ --- a/encodedv/dvconnect.c +++ b/encodedv/dvconnect.c @@ -117,6 +117,13 @@ #define VIDEO1394_LISTEN_POLL_BUFFER \ _IOWR('#', 0x18, struct video1394_wait) +#ifdef __GNU__ +#define _IOT_video1394_mmap \ + _IOT(_IOTS(int), 1, _IOTS(unsigned int), 7, 0, 0) +#define _IOT_video1394_wait \ + _IOT(_IOTS(unsigned int), 2, _IOTS(struct timeval), 1, 0, 0) +#endif + static int cap_start_frame = 0; static int cap_num_frames = 0xfffffff; static int cap_verbose_mode;