From e9f841dfdeb1bec4b9ab8ae297a3456e323199ec Mon Sep 17 00:00:00 2001 From: obache Date: Wed, 3 Mar 2010 06:03:45 +0000 Subject: 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. --- pkgtools/libnbcompat/files/nbcompat/db.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pkgtools/libnbcompat/files') 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 */ -- cgit v1.2.3