diff options
author | obache <obache@pkgsrc.org> | 2010-03-03 06:03:45 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-03-03 06:03:45 +0000 |
commit | 98d529d0173fe3bb9b066b90bbca79c880bce461 (patch) | |
tree | 2888b014826acd35880833ab489198ddf3005129 /pkgtools | |
parent | 79e59a1a20e2a24722a5f4dea8f0c54f73e876c9 (diff) | |
download | pkgsrc-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')
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat/db.h | 10 |
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 */ |