diff options
author | Simon Barner <barner@FreeBSD.org> | 2008-05-17 19:15:03 +0000 |
---|---|---|
committer | Simon Barner <barner@FreeBSD.org> | 2008-05-17 19:15:03 +0000 |
commit | f50c5f2871c41f8c64ca3a5dbcbb1fcef8d3e4a6 (patch) | |
tree | 663fd0db1cf66d3b0355cfb3ba35f0faae370f02 /security | |
parent | 7ce1a7216c5aef1b6dd344b3a65ef8ac7fd159f0 (diff) | |
download | ports-f50c5f2871c41f8c64ca3a5dbcbb1fcef8d3e4a6.tar.gz ports-f50c5f2871c41f8c64ca3a5dbcbb1fcef8d3e4a6.zip |
- Fix build on FreeBSD5 by supplying non-existing Linux error code.
Requested by: pointhat via pav
Notes
Notes:
svn path=/head/; revision=213209
Diffstat (limited to 'security')
-rw-r--r-- | security/libfprint/Makefile | 4 | ||||
-rw-r--r-- | security/libfprint/files/extra-patch-FreeBSD5 | 31 |
2 files changed, 35 insertions, 0 deletions
diff --git a/security/libfprint/Makefile b/security/libfprint/Makefile index cf1fc16da8ff..419aba8aa6c9 100644 --- a/security/libfprint/Makefile +++ b/security/libfprint/Makefile @@ -25,6 +25,10 @@ USE_GNOME= glib20 pkgconfig .include <bsd.port.pre.mk> +.if ${OSVERSION} < 600000 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-FreeBSD5 +.endif + CONFIGURE_ENV+= CRYPTO_CFLAGS=-I${OPENSSLINC} \ CRYPTO_LIBS=-lcrypto \ CFLAGS="${CFLAGS} -DHAVE_MEMMEM" diff --git a/security/libfprint/files/extra-patch-FreeBSD5 b/security/libfprint/files/extra-patch-FreeBSD5 new file mode 100644 index 000000000000..f804d8d4643d --- /dev/null +++ b/security/libfprint/files/extra-patch-FreeBSD5 @@ -0,0 +1,31 @@ +--- libfprint/drivers/upekts.c.orig 2008-04-29 22:04:53.000000000 +0200 ++++ libfprint/drivers/upekts.c 2008-04-29 22:11:18.000000000 +0200 +@@ -35,6 +35,8 @@ + + #include <fp_internal.h> + ++#include "libfprint/errno_compat.h" ++ + #define EP_IN (1 | USB_ENDPOINT_IN) + #define EP_OUT (2 | USB_ENDPOINT_OUT) + #define TIMEOUT 5000 +--- libfprint/drivers/uru4000.c.orig 2008-04-29 22:04:44.000000000 +0200 ++++ libfprint/drivers/uru4000.c 2008-04-29 22:11:33.000000000 +0200 +@@ -28,6 +28,8 @@ + + #include <fp_internal.h> + ++#include "libfprint/errno_compat.h" ++ + #define EP_INTR (1 | USB_ENDPOINT_IN) + #define EP_DATA (2 | USB_ENDPOINT_IN) + #define USB_RQ 0x04 +--- libfprint/errno_compat.h.orig 2008-04-29 22:30:31.550769000 +0200 ++++ libfprint/errno_compat.h 2008-04-29 22:30:31.550769000 +0200 +@@ -0,0 +1,6 @@ ++#ifndef _ERRNO_COMPAT_H_ ++#define _ERRNO_COMPAT_H_ ++ ++#define EPROTO 92 ++ ++#endif /* _ERRNO_COMPAT_H_ */ |