jmb@patton.SGI.COM (Jim Barton) (08/08/88)
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 <sys/dir.h> 31a31,42 > #ifdef mips > # define BSD_4_2 > # include <dirent.h> > #else > # ifdef sgi > # define BSD_4_2 > # include <ndir.h> > # else > # include <sys/dir.h> > # 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' --