Problem with TRN 1.0.2 patch (mthreads.h)

Tony Mountifield tony at mwuk.UUCP
Fri Jan 25 00:59:56 AEST 1991


In article <14946 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
> In article <91022.140110DOUG at ysub.ysu.edu> DOUG at ysub.ysu.edu (Doug Sewell) writes:
> >When 'make' hits the line 'cc -c -O -I. mthreads.c', it gets:
> >>"./mthreads.h", line 61: syntax error
> >Line 61 of mthreads.h is:
> >>void dont_read_data(int);
[............]
> My guess is that your compiler does not support prototypes, and thus
> the appropriate declaration in mthreads.h should have been
> 	void dont_read_data();
> Without looking at the code I have no idea why prototypes were being
> used.

I had the same problem, and it is due to an oversight in the declaration.
It shoudl have read:

	void dont_read_data ANSI((int))

ANSI is a macro which either includes or omits the prototypes (compare
the other declarations around the same area).
-- 
Tony Mountifield.                | Microware Systems (UK) Ltd.
MAIL:  tony at mwuk.uucp            | Leylands Farm, Nobs Crook,
INET:  tony%mwuk.uucp at ukc.ac.uk  | Colden Common, WINCHESTER, SO21 1TH.
UUCP:  ...!mcsun!ukc!mwuk!tony   | Tel: 0703 601990   Fax: 0703 601991
**** OS-9, OS-9000 Real Time Systems **** MS-DOS - just say "No!" ****



More information about the Comp.sources.bugs mailing list