make this work on (even older) IRIX: check for __sgi rather than sgi

This was originally reported in PR 28819 by Georg Schwarz for db4 and
also noted by Georg to apply to this package.
This commit is contained in:
jschauma 2005-02-27 21:42:42 +00:00
parent e64be73dbf
commit af6cf2fcff
2 changed files with 15 additions and 1 deletions

View file

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.4 2005/02/23 16:33:05 agc Exp $
$NetBSD: distinfo,v 1.5 2005/02/27 21:42:42 jschauma Exp $
SHA1 (db-2.7.7.tar.gz) = 786e7f1be5f8d2dbdfa205a22ae9a5d1ead85701
RMD160 (db-2.7.7.tar.gz) = 703dcddb69884c749637e07d592c4d1850981fd1
Size (db-2.7.7.tar.gz) = 1112976 bytes
SHA1 (patch-aa) = 80f46598f0859c0f0b2ed0aa737c5626e99201a2
SHA1 (patch-ab) = f524ff9a01813c4384b830a860e32db24bf502f3

View file

@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1 2005/02/27 21:42:42 jschauma Exp $
--- ../include/db_185.h.orig Sun Feb 27 16:27:52 2005
+++ ../include/db_185.h Sun Feb 27 16:28:05 2005
@@ -76,7 +76,7 @@
* XXX
* SGI/IRIX already has a pgno_t.
*/
-#ifdef sgi
+#ifdef __sgi
#define pgno_t db_pgno_t
#endif