openbsd-ports/security/libfprint/patches/patch-libfprint_fp_internal_h

19 lines
605 B
Plaintext

$OpenBSD: patch-libfprint_fp_internal_h,v 1.2 2009/10/27 06:16:03 jasper Exp $
--- libfprint/fp_internal.h.orig Thu Mar 20 14:37:33 2008
+++ libfprint/fp_internal.h Tue Oct 27 07:14:56 2009
@@ -62,6 +62,14 @@ void fpi_log(enum fpi_log_level, const char *component
#define fp_warn(fmt...) _fpi_log(LOG_LEVEL_WARNING, fmt)
#define fp_err(fmt...) _fpi_log(LOG_LEVEL_ERROR, fmt)
+#if !defined(ENODATA) && defined(ENOENT)
+#define ENODATA ENOENT
+#endif
+
+#if !defined(EPROTO) && defined(ENOPROTOOPT)
+#define EPROTO ENOPROTOOPT
+#endif
+
struct fp_dev {
struct fp_driver *drv;
usb_dev_handle *udev;