Better KSH-I 'expand.c' diffs
Jim Barton
jmb at patton.SGI.COM
Tue Aug 9 01:35:50 AEST 1988
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 at sgi.sgi.com, sgi!jmb at decwrl.dec.com, ...{decwrl,sun}!sgi!jmb
"I used to be disgusted, now I'm just amused."
- Elvis Costello, 'Red Shoes'
--
More information about the Comp.sys.sgi
mailing list