From xemacs-m  Sat Sep 20 21:07:58 1997
Received: from GS213.SP.CS.CMU.EDU (GS213.SP.CS.CMU.EDU [128.2.209.183])
	by xemacs.org (8.8.5/8.8.5) with SMTP id VAA05666
	for <xemacs-beta@xemacs.org>; Sat, 20 Sep 1997 21:07:58 -0500 (CDT)
Received: by GS213.SP.CS.CMU.EDU (AIX 3.2/UCB 5.64/4.03)
          id AA06793; Sat, 20 Sep 1997 22:07:59 -0400
Date: Sat, 20 Sep 1997 22:07:59 -0400
Message-Id: <9709210207.AA06793@GS213.SP.CS.CMU.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Darrell Kindred <dkindred@cmu.edu>
To: xemacs-beta@xemacs.org
Subject: 19.16-pre3: [PATCH] irix 5.3 fix
Organization: Carnegie Mellon University School of Computer Science
X-Mailer: VM 6.34 under 19.16 "Manhattan" XEmacs Lucid

This patch is necessary for building under IRIX 5.3.

- Darrell

--- src/unexelfsgi.c.orig	Fri Aug 29 22:40:13 1997
+++ src/unexelfsgi.c	Sat Sep 20 21:16:13 1997
@@ -545,6 +545,12 @@
 	   (n)++; } while (0)
 typedef unsigned char byte;
 
+/* IRIX 5 defines this only in inttypes.h, and you can't include both 
+ * inttypes.h and sys/types.h.  This is fixed by IRIX 6.2. */
+#ifndef HAVE_UINTPTR_T
+typedef unsigned long int       uintptr_t;
+#endif
+
 /* Round X up to a multiple of Y.  */
 
 int
--- src/s/irix6-0.h.orig	Sun Mar 16 00:56:27 1997
+++ src/s/irix6-0.h	Sat Sep 20 21:12:10 1997
@@ -19,3 +19,9 @@
 
 /* Irix 6.2 doesn't need -lw */
 #undef NEED_LIBW
+
+/* Irix 5 has this defined in inttypes.h, but you can't include
+ * both inttypes.h and sys/types.h.  This is fixed by Irix 6.2. 
+ * This should probably be set by configure.
+ */
+#define HAVE_UINTPTR_T 1

