*** PORT/include/db.h.orig	Mon Jan  3 00:20:34 1994
--- PORT/include/db.h	Wed May  4 14:36:54 1994
***************
*** 36,42 ****
--- 36,54 ----
  #ifndef _DB_H_
  #define	_DB_H_
  
+ #ifdef sgi
+ /*
+  * Get rid of the IRIX5.2 pgno_t typedef. On that system, it is an signed
+  * long but the memory pool routines want an unsigned long (defined below).
+  * This is the quick and dirty way of getting rid of the IRIX typedef so
+  * we can define our own pgno_t.
+  */
+ #define pgno_t s_pgno_t
  #include <sys/types.h>
+ #undef s_pgno_t
+ #else
+ #include <sys/types.h>
+ #endif
  #include <sys/cdefs.h>
  
  #include <limits.h>
