From xemacs-m  Mon Dec  9 04:08:05 1996
Received: from macon.informatik.uni-tuebingen.de (macon2.Informatik.Uni-Tuebingen.De [134.2.13.2]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with SMTP id EAA18324 for <xemacs-beta@xemacs.org>; Mon, 9 Dec 1996 04:08:02 -0600 (CST)
Received: from modas.Informatik.Uni-Tuebingen.De by macon.informatik.uni-tuebingen.de (AIX 4.1/UCB 5.64/4.03)
          id AA16354; Mon, 9 Dec 1996 11:07:46 +0100
Received: by modas.informatik.uni-tuebingen.de (AIX 4.1/UCB 5.64/4.03)
          id AA23870; Mon, 9 Dec 1996 11:07:45 +0100
Sender: sperber@informatik.uni-tuebingen.de
To: xemacs-beta@xemacs.org
Subject: Compile-buglet for mmencode.c on 20.0b30 
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Date: 09 Dec 1996 11:07:44 +0100
Message-Id: <y9l4thwkp3j.fsf@modas.informatik.uni-tuebingen.de>
Lines: 38
X-Mailer: Red Gnus v0.72/XEmacs 19.15


This seems to be needed at least on AIX.  index is a macro out here.

Cheers =8-} Mike

*** lib-src/mmencode.c.orig	Mon Dec  9 10:12:30 1996
--- lib-src/mmencode.c	Mon Dec  9 10:12:52 1996
***************
*** 22,28 ****
  static void
  output64chunk(int c1, int c2, int c3, int pads, FILE *outfile);
  
- extern char *index();
  static char basis_64[] =
     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  
--- 22,27 ----
***************
*** 43,48 ****
--- 42,49 ----
  char64(c)
  char c;
  {
+     extern char *index();
+ 
      char *s = (char *) index(basis_64, c);
      if (s) return(s-basis_64);
      return(-1);
***************
*** 265,270 ****
--- 266,272 ----
  hexchar(c)
  char c;
  {
+     extern char *index();
      char *s;
      if (islower(c)) c = toupper(c);
      s = (char *) index(basis_hex, c);

