I get the following error:
gcc -c -g -O2 -I. -I. -D_PATH_TCSHELL='"/usr/local/bin/tcsh"' sh.proc.c
sh.proc.c: In function 'pchild':
sh.proc.c:155:16: error: storage size of 'w' isn't known
make: *** [sh.proc.o] Error 1
Those lines are:
#ifdef BSDWAIT
union wait w;
#else /* !BSDWAIT */
int w;
#endif /* !BSDWAIT */
If I just use
//#ifdef BSDWAIT
// union wait w;
//#else /* !BSDWAIT */
int w;
//#endif /* !BSDWAIT */
it compiles and works (for months now without an issue).
My question really is what should the proper "ifdef" be if I want to send the fix to the tcsh maintainers ?