home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23451 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.9 KB

  1. Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin09!adv!devet
  2. From: devet@adv.win.tue.nl (Arjan de Vet)
  3. Newsgroups: comp.os.linux
  4. Subject: TRN 2.4 compiles out of the box with GCC 2.2.2
  5. Keywords: trn, rn, news, gcc
  6. Message-ID: <1993Jan10.114227.312@adv.win.tue.nl>
  7. Date: 10 Jan 93 11:42:27 GMT
  8. Followup-To: comp.os.linux
  9. Organization: Eindhoven University of Technology, the Netherlands
  10. Lines: 45
  11.  
  12.  
  13. The new version of the threaded news reader trn (version 2.4) compiles out
  14. of the box with GCC 2.2.2 after fixing one small typo:
  15.  
  16. --- config.h.SH.org    Sat Jan  9 12:33:24 1993
  17. +++ config.h.SH    Sun Jan 10 10:01:04 1993
  18. @@ -141,7 +141,7 @@
  19.  #$strchr rindex strrchr        /*  differences? */
  20.  #$memcpy bcopy(s,d,n) memcpy((char*)d,(char*)s,(int)n)    /* Different */
  21.  #$memcpy bzero(d,n)   memset((char*)d,0,(int)n)        /*  flavors. */
  22. -#$memcpy bcmp(s,s2,n) memcmp((char*)s,(char*)s2,(int)n)
  23. +#$memcpy bcmp(s,s2,n) memcmp((char*)s,(char*)s2,(int)n) /**/
  24.  #$rename RENAME        /* is rename() a system call? */
  25.  #$ftruncate FTRUNCATE    /* is ftruncate() available? */
  26.  #$usleep USLEEP        /* do we have usleep? */
  27.  
  28. When using GCC 2.3.3 with the new include files of HLU's disks, you
  29. should also fix common.h because HLU changed the return type of fseek() to
  30. int (as it should be):
  31.  
  32. --- common.h-    Sat Jan  9 12:33:24 1993
  33. +++ common.h    Sun Jan 10 12:13:19 1993
  34. @@ -909,11 +909,7 @@
  35.  
  36.  /* miscellania */
  37.  
  38. -#ifdef linux
  39. -long int fseek();
  40. -#else
  41.  int fseek();
  42. -#endif
  43.  long atol(), ftell();
  44.  EXT bool in_ng INIT(FALSE);        /* current state of rn */
  45.  EXT char mode INIT('i');        /* current state of rn */
  46.  
  47. (I submitted this as a patch to the author when still using gcc 2.2.2. It
  48. can now be removed).
  49.  
  50. I somebody wants my config.sh file, just send me an email.
  51.  
  52. Arjan
  53.  
  54. --
  55. Arjan de Vet                             <Arjan.de.Vet@adv.win.tue.nl> (home)
  56. Eindhoven University of Technology, the Netherlands <devet@win.tue.nl> (work)
  57.