Add patch to define ETIME for the kFreeBSD flavours.

This fixes the FTBFS on kFreeBSD without guaranteeing that it actually
works.

Closes: #673704
This commit is contained in:
Didier Raboud
2012-05-21 10:10:14 +02:00
parent 04fad3f9b3
commit edfc461a48
2 changed files with 35 additions and 0 deletions
@@ -0,0 +1,34 @@
Description: Add missing ETIME definition for kFreeBSD flavours.
Author: Steven Chamberlain <steven@pyro.eu.org>
Bug-Debian: http://bugs.debian.org/673704
Forwarded: not-yet
Reviewed-by: Didier Raboud <odyx@debian.org>
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 <fp_internal.h>
+#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 <fp_internal.h>
+#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)
+1
View File
@@ -0,0 +1 @@
kFreeBSD_FTBFS_add_ETIME_definition.patch