home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin09!adv!devet
- From: devet@adv.win.tue.nl (Arjan de Vet)
- Newsgroups: comp.os.linux
- Subject: TRN 2.4 compiles out of the box with GCC 2.2.2
- Keywords: trn, rn, news, gcc
- Message-ID: <1993Jan10.114227.312@adv.win.tue.nl>
- Date: 10 Jan 93 11:42:27 GMT
- Followup-To: comp.os.linux
- Organization: Eindhoven University of Technology, the Netherlands
- Lines: 45
-
-
- The new version of the threaded news reader trn (version 2.4) compiles out
- of the box with GCC 2.2.2 after fixing one small typo:
-
- --- config.h.SH.org Sat Jan 9 12:33:24 1993
- +++ config.h.SH Sun Jan 10 10:01:04 1993
- @@ -141,7 +141,7 @@
- #$strchr rindex strrchr /* differences? */
- #$memcpy bcopy(s,d,n) memcpy((char*)d,(char*)s,(int)n) /* Different */
- #$memcpy bzero(d,n) memset((char*)d,0,(int)n) /* flavors. */
- -#$memcpy bcmp(s,s2,n) memcmp((char*)s,(char*)s2,(int)n)
- +#$memcpy bcmp(s,s2,n) memcmp((char*)s,(char*)s2,(int)n) /**/
- #$rename RENAME /* is rename() a system call? */
- #$ftruncate FTRUNCATE /* is ftruncate() available? */
- #$usleep USLEEP /* do we have usleep? */
-
- When using GCC 2.3.3 with the new include files of HLU's disks, you
- should also fix common.h because HLU changed the return type of fseek() to
- int (as it should be):
-
- --- common.h- Sat Jan 9 12:33:24 1993
- +++ common.h Sun Jan 10 12:13:19 1993
- @@ -909,11 +909,7 @@
-
- /* miscellania */
-
- -#ifdef linux
- -long int fseek();
- -#else
- int fseek();
- -#endif
- long atol(), ftell();
- EXT bool in_ng INIT(FALSE); /* current state of rn */
- EXT char mode INIT('i'); /* current state of rn */
-
- (I submitted this as a patch to the author when still using gcc 2.2.2. It
- can now be removed).
-
- I somebody wants my config.sh file, just send me an email.
-
- Arjan
-
- --
- Arjan de Vet <Arjan.de.Vet@adv.win.tue.nl> (home)
- Eindhoven University of Technology, the Netherlands <devet@win.tue.nl> (work)
-