summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-03-03 06:03:45 +0000
committerobache <obache@pkgsrc.org>2010-03-03 06:03:45 +0000
commit98d529d0173fe3bb9b066b90bbca79c880bce461 (patch)
tree2888b014826acd35880833ab489198ddf3005129 /pkgtools/libnbcompat
parent79e59a1a20e2a24722a5f4dea8f0c54f73e876c9 (diff)
downloadpkgsrc-98d529d0173fe3bb9b066b90bbca79c880bce461.tar.gz
Avoid conflicting types for `pgno_t', treat same as db_185.h in db[234].
IRIX have it in sys/types.h as reported by PR42841.
Diffstat (limited to 'pkgtools/libnbcompat')
-rw-r--r--pkgtools/libnbcompat/files/nbcompat/db.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat/db.h b/pkgtools/libnbcompat/files/nbcompat/db.h
index 9ca4c25a57f..b0f248dd81a 100644
--- a/pkgtools/libnbcompat/files/nbcompat/db.h
+++ b/pkgtools/libnbcompat/files/nbcompat/db.h
@@ -1,4 +1,4 @@
-/* $NetBSD: db.h,v 1.2 2010/01/24 08:52:01 obache Exp $ */
+/* $NetBSD: db.h,v 1.3 2010/03/03 06:03:45 obache Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -43,6 +43,14 @@
#define RET_SUCCESS 0
#define RET_SPECIAL 1
+/*
+ * XXX
+ * SGI/IRIX already has a pgno_t.
+*/
+#ifdef __sgi
+#define pgno_t db_pgno_t
+#endif
+
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */
typedef uint32_t pgno_t;
#define MAX_PAGE_OFFSET 65535 /* >= # of bytes in a page */