pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files/db Replace EFTYPE with EINV...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93f4da28a90d
branches:  trunk
changeset: 549147:93f4da28a90d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Oct 28 15:06:26 2008 +0000

description:
Replace EFTYPE with EINVAL if the former doesn't exist.

diffstat:

 pkgtools/libnbcompat/files/db/btree/btree.h |  7 ++++++-
 pkgtools/libnbcompat/files/db/hash/hash.h   |  7 ++++++-
 pkgtools/libnbcompat/files/db/mpool/mpool.c |  8 ++++++--
 3 files changed, 18 insertions(+), 4 deletions(-)

diffs (66 lines):

diff -r d5fa4688e0c5 -r 93f4da28a90d pkgtools/libnbcompat/files/db/btree/btree.h
--- a/pkgtools/libnbcompat/files/db/btree/btree.h       Tue Oct 28 13:47:55 2008 +0000
+++ b/pkgtools/libnbcompat/files/db/btree/btree.h       Tue Oct 28 15:06:26 2008 +0000
@@ -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 @@
        uint32_t flags;
 } BTREE;
 
+#include <errno.h>
+#ifndef        EFTYPE
+#define        EFTYPE          EINVAL
+#endif
+
 #include "extern.h"
diff -r d5fa4688e0c5 -r 93f4da28a90d pkgtools/libnbcompat/files/db/hash/hash.h
--- a/pkgtools/libnbcompat/files/db/hash/hash.h Tue Oct 28 13:47:55 2008 +0000
+++ b/pkgtools/libnbcompat/files/db/hash/hash.h Tue Oct 28 15:06:26 2008 +0000
@@ -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 @@
 #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 -r d5fa4688e0c5 -r 93f4da28a90d pkgtools/libnbcompat/files/db/mpool/mpool.c
--- a/pkgtools/libnbcompat/files/db/mpool/mpool.c       Tue Oct 28 13:47:55 2008 +0000
+++ b/pkgtools/libnbcompat/files/db/mpool/mpool.c       Tue Oct 28 15:06:26 2008 +0000
@@ -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 @@
 #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)



Home | Main Index | Thread Index | Old Index