Path: utzoo!attcan!uunet!husc6!mailrus!ames!sgi!jmb From: jmb@patton.SGI.COM (Jim Barton) Newsgroups: comp.sys.sgi Subject: Better KSH-I 'expand.c' diffs Keywords: ksh 4D Message-ID: <18631@sgi.SGI.COM> Date: 8 Aug 88 15:35:50 GMT Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics Inc, Mountain View, CA Lines: 45 Looking back, I realized that the context diff I posted was pretty confusing for the ksh expand.c changes needed. They really are simple. Here is a simple 'diff' comparison: < old expand.c > new expand.c The #ifdef sgi is for IRIS machines, the #ifdef mips is for the 4D series. 25d24 < #include 31a31,42 > #ifdef mips > # define BSD_4_2 > # include > #else > # ifdef sgi > # define BSD_4_2 > # include > # else > # include > # endif > #endif > 74a86,89 > # ifdef mips > struct dirent entry; > char entrybuf[sizeof(struct dirent)+1]; /* room for null byte */ > # else 76a92 > # endif 78a95,97 > # ifdef mips > struct dirent *entry = &dirent.entry; > # else 79a99 > # endif -- Jim Barton Silicon Graphics Computing Systems "UNIX: Live Free Or Die!" jmb@sgi.sgi.com, sgi!jmb@decwrl.dec.com, ...{decwrl,sun}!sgi!jmb "I used to be disgusted, now I'm just amused." - Elvis Costello, 'Red Shoes' --