Correct the kFreeBSD ETIME patch update to define ETIME later.

Should fix the new kFreeBSD FTBFS.
This commit is contained in:
Didier Raboud
2013-03-03 15:21:26 +01:00
parent 3d7032fc16
commit e146b9bf05
2 changed files with 13 additions and 5 deletions
+12 -4
View File
@@ -34,14 +34,22 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
#define EP_OUT(n) (n | LIBUSB_ENDPOINT_OUT) #define EP_OUT(n) (n | LIBUSB_ENDPOINT_OUT)
--- a/libfprint/drivers/vfs301.c --- a/libfprint/drivers/vfs301.c
+++ b/libfprint/drivers/vfs301.c +++ b/libfprint/drivers/vfs301.c
@@ -21,6 +21,10 @@ @@ -21,6 +21,7 @@
#define FP_COMPONENT "vfs301" #define FP_COMPONENT "vfs301"
+
#include <errno.h>
#include <signal.h>
#include <string.h>
@@ -36,6 +37,10 @@
#include "driver_ids.h"
+#ifndef ETIME +#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */ +#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif +#endif
+ +
#include <errno.h> /************************** GENERIC STUFF *************************************/
#include <signal.h>
#include <string.h> /* Callback of asynchronous sleep */
+1 -1
View File
@@ -6,7 +6,7 @@ Author: Didier Raboud <odyx@debian.org>
Last-Update: 2013-03-03 Last-Update: 2013-03-03
--- a/libfprint/drivers/vfs301.c --- a/libfprint/drivers/vfs301.c
+++ b/libfprint/drivers/vfs301.c +++ b/libfprint/drivers/vfs301.c
@@ -31,7 +31,7 @@ @@ -28,7 +28,7 @@
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>