account for having ENOTSUP in errno.h now

This commit is contained in:
jasper 2009-10-27 06:16:03 +00:00
parent 6496789887
commit 88a4ec1eb9
2 changed files with 6 additions and 10 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.5 2009/06/19 11:11:33 sthen Exp $
# $OpenBSD: Makefile,v 1.6 2009/10/27 06:16:03 jasper Exp $
COMMENT= library for fingerprint reader devices
DISTNAME= libfprint-0.0.6
PKGNAME= ${DISTNAME}p2
PKGNAME= ${DISTNAME}p3
CATEGORIES= security
SHARED_LIBS= fprint 0.0

View File

@ -1,14 +1,10 @@
$OpenBSD: patch-libfprint_fp_internal_h,v 1.1.1.1 2009/03/24 19:01:04 robert Exp $
--- libfprint/fp_internal.h.orig Tue Mar 24 17:28:48 2009
+++ libfprint/fp_internal.h Tue Mar 24 17:28:34 2009
@@ -62,6 +62,18 @@ void fpi_log(enum fpi_log_level, const char *component
$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(ENOTSUP) && defined(EOPNOTSUPP)
+#define ENOTSUP EOPNOTSUPP
+#endif
+
+#if !defined(ENODATA) && defined(ENOENT)
+#define ENODATA ENOENT
+#endif