Which DJGPP do you have? Mine, which is the latest available from the website, has the whole section of ioctl.h commented out, with this note:
'#if 0 /* ** UNIX stuff ** ** This is subject to major changes in the near future. ** Do not use it yet. */' And inside comes TIOCSWINSZ definition. The file has a date of 1996. Brgds, Viktor On Tue, Jul 14, 2009 at 12:00 PM, Viktor Szakáts<[email protected]> wrote: > Thank you. > > Strangely I'm getting this: > --- > gcc -I. -I../../../../../include -Wall -W -O3 > -IC:\devl\djgpp\bin/../include -c ../../gtcrs.c -ogtcrs.o > In file included from ../../../../../include/hbdefs.h:158, > from ../../../../../include/hbvmpub.h:56, > from ../../../../../include/hbapi.h:61, > from ../../../../../include/hbapigt.h:76, > from ../../../../../include/hbgtcore.h:61, > from ../../gtcrs.h:59, > from ../../gtcrs.c:56: > C:\devl\djgpp\bin/../include/dos.h:203: warning: 'packed' attribute > ignored for field of type 'char[21]' > C:\devl\djgpp\bin/../include/dos.h:204: warning: 'packed' attribute > ignored for field of type 'unsigned char' > C:\devl\djgpp\bin/../include/dos.h:208: warning: 'packed' attribute > ignored for field of type 'char[256]' > ../../gtcrs.c: In function 'gt_getsize': > ../../gtcrs.c:1743: error: storage size of 'win' isn't known > ../../gtcrs.c:1745: error: 'TIOCGWINSZ' undeclared (first use in this > function) > ../../gtcrs.c:1745: error: (Each undeclared identifier is reported only once > ../../gtcrs.c:1745: error: for each function it appears in.) > ../../gtcrs.c:1743: warning: unused variable 'win' > ../../gtcrs.c: In function 'gt_setsize': > ../../gtcrs.c:1814: error: storage size of 'win' isn't known > ../../gtcrs.c:1816: error: 'TIOCGWINSZ' undeclared (first use in this > function) > ../../gtcrs.c:1820: error: 'TIOCSWINSZ' undeclared (first use in this > function) > ../../gtcrs.c:1814: warning: unused variable 'win' > djg-make.exe[1]: *** [gtcrs.o] Error 1 > --- > > and this: > --- > gcc -I. -I../../../../../include -Wall -W -O3 -c ../../gttrm.c -ogttrm.o > ../../gttrm.c: In function 'hb_gt_trm_getSize': > ../../gttrm.c:667: error: storage size of 'win' isn't known > ../../gttrm.c:669: error: 'TIOCGWINSZ' undeclared (first use in this function) > ../../gttrm.c:669: error: (Each undeclared identifier is reported only once > ../../gttrm.c:669: error: for each function it appears in.) > ../../gttrm.c:667: warning: unused variable 'win' > --- > > Brgds, > Viktor > > On Tue, Jul 14, 2009 at 11:30 AM, <[email protected]> wrote: >> Revision: 11746 >> >> http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11746&view=rev >> Author: druzus >> Date: 2009-07-14 09:30:34 +0000 (Tue, 14 Jul 2009) >> >> Log Message: >> ----------- >> 2009-07-14 11:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) >> * harbour/source/rtl/gtcrs/gtcrs.c >> * harbour/source/rtl/gtcrs/gtcrs.h >> * harbour/source/rtl/gtcrs/Makefile >> * updated to compile with DJGPP and PDCURSES >> >> * harbour/source/rtl/gttrm/Makefile >> * harbour/source/rtl/gttrm/gttrm.c >> * updated to compile with DJGPP - warning it needs remote terminal or >> at least ANSI driver for local execution >> >> * harbour/source/rtl/gtchrmap.c >> * enabed for DOS builds >> >> Modified Paths: >> -------------- >> trunk/harbour/ChangeLog >> trunk/harbour/source/rtl/gtchrmap.c >> trunk/harbour/source/rtl/gtcrs/Makefile >> trunk/harbour/source/rtl/gtcrs/gtcrs.c >> trunk/harbour/source/rtl/gtcrs/gtcrs.h >> trunk/harbour/source/rtl/gttrm/Makefile >> trunk/harbour/source/rtl/gttrm/gttrm.c >> >> >> This was sent by the SourceForge.net collaborative development platform, the >> world's largest Open Source development site. >> _______________________________________________ >> Harbour mailing list >> [email protected] >> http://lists.harbour-project.org/mailman/listinfo/harbour >> > _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
