mailing list of musl libc
 help / color / mirror / code / Atom feed
* Fix for tcsh
@ 2013-06-21  9:19 Paul Schutte
  2013-06-21  9:27 ` Igmar Palsenberg
  2013-06-21 15:52 ` Rich Felker
  0 siblings, 2 replies; 6+ messages in thread
From: Paul Schutte @ 2013-06-21  9:19 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]

Good day,

I just want to know what would be right approach to fixing the compile
error in tcsh.

I use the source code at ftp://ftp.astron.com/pub/tcsh/tcsh-6.18.01.tar.gz

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 ?

Regards
Paul

[-- Attachment #2: Type: text/html, Size: 1191 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-21 20:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-21  9:19 Fix for tcsh Paul Schutte
2013-06-21  9:27 ` Igmar Palsenberg
2013-06-21 15:52 ` Rich Felker
2013-06-21 20:00   ` Paul Schutte
2013-06-21 20:16     ` Rich Felker
2013-06-21 20:26       ` Paul Schutte

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).