From edfc461a4856194ea378d2b3bcc5d3f57f841861 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Mon, 21 May 2012 10:10:14 +0200 Subject: [PATCH] Add patch to define ETIME for the kFreeBSD flavours. This fixes the FTBFS on kFreeBSD without guaranteeing that it actually works. Closes: #673704 --- .../kFreeBSD_FTBFS_add_ETIME_definition.patch | 34 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 35 insertions(+) create mode 100644 debian/patches/kFreeBSD_FTBFS_add_ETIME_definition.patch create mode 100644 debian/patches/series diff --git a/debian/patches/kFreeBSD_FTBFS_add_ETIME_definition.patch b/debian/patches/kFreeBSD_FTBFS_add_ETIME_definition.patch new file mode 100644 index 00000000..d6314686 --- /dev/null +++ b/debian/patches/kFreeBSD_FTBFS_add_ETIME_definition.patch @@ -0,0 +1,34 @@ +Description: Add missing ETIME definition for kFreeBSD flavours. +Author: Steven Chamberlain +Bug-Debian: http://bugs.debian.org/673704 +Forwarded: not-yet +Reviewed-by: Didier Raboud +Last-Update: 2012-05-21 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/libfprint/drivers/uru4000.c ++++ b/libfprint/drivers/uru4000.c +@@ -29,6 +29,10 @@ + + #include + ++#ifndef ETIME ++#define ETIME ETIMEDOUT /* For kFreeBSD */ ++#endif ++ + #define EP_INTR (1 | LIBUSB_ENDPOINT_IN) + #define EP_DATA (2 | LIBUSB_ENDPOINT_IN) + #define USB_RQ 0x04 +--- a/libfprint/drivers/vfs101.c ++++ b/libfprint/drivers/vfs101.c +@@ -25,6 +25,10 @@ + + #include + ++#ifndef ETIME ++#define ETIME ETIMEDOUT /* For kFreeBSD */ ++#endif ++ + /* Input-Output usb endpoint */ + #define EP_IN(n) (n | LIBUSB_ENDPOINT_IN) + #define EP_OUT(n) (n | LIBUSB_ENDPOINT_OUT) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 00000000..4910d8aa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +kFreeBSD_FTBFS_add_ETIME_definition.patch