summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-10-28 15:06:26 +0000
committerjoerg <joerg@pkgsrc.org>2008-10-28 15:06:26 +0000
commiteece6e89de353b2dfa75477ebf66d66695d2fd86 (patch)
treee751494457b58549089bbee8246beff26922ecba /pkgtools/libnbcompat
parent18c0c22aee6d9821635064e1643ab979b3a7f4cc (diff)
downloadpkgsrc-eece6e89de353b2dfa75477ebf66d66695d2fd86.tar.gz
Replace EFTYPE with EINVAL if the former doesn't exist.
Diffstat (limited to 'pkgtools/libnbcompat')
-rw-r--r--pkgtools/libnbcompat/files/db/btree/btree.h7
-rw-r--r--pkgtools/libnbcompat/files/db/hash/hash.h7
-rw-r--r--pkgtools/libnbcompat/files/db/mpool/mpool.c8
3 files changed, 18 insertions, 4 deletions
diff --git a/pkgtools/libnbcompat/files/db/btree/btree.h b/pkgtools/libnbcompat/files/db/btree/btree.h
index 6f4bb72f51f..e8211dc0ae7 100644
--- a/pkgtools/libnbcompat/files/db/btree/btree.h
+++ b/pkgtools/libnbcompat/files/db/btree/btree.h
@@ -1,4 +1,4 @@
-/* $NetBSD: btree.h,v 1.2 2008/10/26 12:51:59 joerg Exp $ */
+/* $NetBSD: btree.h,v 1.3 2008/10/28 15:06:26 joerg Exp $ */
/* NetBSD: btree.h,v 1.16 2008/08/26 21:18:38 joerg Exp */
/*-
@@ -431,4 +431,9 @@ typedef struct _btree {
uint32_t flags;
} BTREE;
+#include <errno.h>
+#ifndef EFTYPE
+#define EFTYPE EINVAL
+#endif
+
#include "extern.h"
diff --git a/pkgtools/libnbcompat/files/db/hash/hash.h b/pkgtools/libnbcompat/files/db/hash/hash.h
index ce4b57a1236..089e921b5a5 100644
--- a/pkgtools/libnbcompat/files/db/hash/hash.h
+++ b/pkgtools/libnbcompat/files/db/hash/hash.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hash.h,v 1.1 2008/10/10 00:21:43 joerg Exp $ */
+/* $NetBSD: hash.h,v 1.2 2008/10/28 15:06:26 joerg Exp $ */
/* NetBSD: hash.h,v 1.15 2008/08/26 21:18:38 joerg Exp */
/*-
@@ -294,3 +294,8 @@ typedef struct htab { /* Memory resident data structure */
#define MAGIC hdr.magic
#define NEXT_FREE hdr.next_free
#define H_CHARKEY hdr.h_charkey
+
+#include <errno.h>
+#ifndef EFTYPE
+#define EFTYPE EINVAL
+#endif
diff --git a/pkgtools/libnbcompat/files/db/mpool/mpool.c b/pkgtools/libnbcompat/files/db/mpool/mpool.c
index 2190996879e..290e0d988c1 100644
--- a/pkgtools/libnbcompat/files/db/mpool/mpool.c
+++ b/pkgtools/libnbcompat/files/db/mpool/mpool.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mpool.c,v 1.2 2008/10/26 12:52:00 joerg Exp $ */
+/* $NetBSD: mpool.c,v 1.3 2008/10/28 15:06:26 joerg Exp $ */
/* NetBSD: mpool.c,v 1.18 2008/09/11 12:58:00 joerg Exp */
/*-
@@ -33,7 +33,7 @@
#include <nbcompat.h>
#include <nbcompat/cdefs.h>
-__RCSID("$NetBSD: mpool.c,v 1.2 2008/10/26 12:52:00 joerg Exp $");
+__RCSID("$NetBSD: mpool.c,v 1.3 2008/10/28 15:06:26 joerg Exp $");
#include <nbcompat/queue.h>
#include <sys/stat.h>
@@ -49,6 +49,10 @@ __RCSID("$NetBSD: mpool.c,v 1.2 2008/10/26 12:52:00 joerg Exp $");
#define __MPOOLINTERFACE_PRIVATE
#include <nbcompat/mpool.h>
+#ifndef EFTYPE
+#define EFTYPE EINVAL
+#endif
+
#ifdef __weak_alias
__weak_alias(mpool_close,_mpool_close)
__weak_alias(mpool_filter,_mpool_filter)