summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools')
-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 */