home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23471 < prev    next >
Encoding:
Text File  |  1993-01-10  |  4.3 KB  |  129 lines

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att-out!rutgers!ub!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!news.univie.ac.at!hp4at!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: [PATCH] Patches for elm 2.4.20 with gcc 2.3.3/jump 4.2
  5. Keywords: elm, gcc
  6. Message-ID: <1993Jan10.184928.2232@adv.win.tue.nl>
  7. Date: 10 Jan 93 18:49:28 GMT
  8. Followup-To: comp.os.linux
  9. Organization: Eindhoven University of Technology, the Netherlands
  10. Lines: 117
  11.  
  12.  
  13. Here are the patches required for elm 2.4 patchlevel 20. I used gcc 2.3.3
  14. and jump table libs 4.2. I think there's a small bug in setjmp.h: the return
  15. type of sigsetjmp should be int, not void:
  16.  
  17. -----------------------------------------------------------------------------
  18. --- setjmp.h.org    Thu Dec 31 19:25:16 1992
  19. +++ setjmp.h    Sun Jan 10 19:11:12 1993
  20. @@ -57,7 +57,7 @@
  21.  /* Linux uses sigsetjmp (). Store the calling environment in ENV,
  22.     also saving the signal mask if SAVEMASK is nonzero.  Return 0.  */
  23.  
  24. -extern void sigsetjmp __P ((sigjmp_buf __env, int __savemask));
  25. +extern int sigsetjmp __P ((sigjmp_buf __env, int __savemask));
  26.  
  27.  #else
  28.  /* Store the calling environment in ENV, also saving the
  29. -----------------------------------------------------------------------------
  30.  
  31. (I already reported this to H.J.).
  32.  
  33. Here's the full patch (which I submitted to the Elm maintainer):
  34.  
  35. -----------------------------------------------------------------------------
  36. diff -cr elm-org/lib/ldstate.c elm/lib/ldstate.c
  37. *** elm-org/lib/ldstate.c    Thu Dec 24 22:48:34 1992
  38. --- elm/lib/ldstate.c    Sun Jan 10 17:03:57 1993
  39. ***************
  40. *** 73,79 ****
  41. --- 73,81 ----
  42.       char buf[SLEN], *state_fname;
  43.       int status, i;
  44.       FILE *fp;
  45. + #ifndef linux        /* linux has atol() defined as a macro */
  46.       extern long atol();
  47. + #endif /* linux */
  48.   
  49.       /* clear out the folder status record */
  50.       fst->folder_name = NULL;
  51. diff -cr elm-org/lib/ndbz.c elm/lib/ndbz.c
  52. *** elm-org/lib/ndbz.c    Sat Dec 12 02:29:28 1992
  53. --- elm/lib/ndbz.c    Sun Jan 10 17:04:11 1993
  54. ***************
  55. *** 233,240 ****
  56. --- 233,242 ----
  57.   #define    MAPOUT(o)    ((db->dbz_bytesame) ? (o) : bytemap((o), db->dbz_mybmap, db->dbz_conf.bytemap))
  58.   
  59.   /* externals used */
  60. + #ifndef linux        /* linux has atoi() and atol() defined as macros */
  61.   extern int atoi();
  62.   extern long atol();
  63. + #endif /* linux */
  64.   
  65.   /* misc. forwards */
  66.   static long hash();
  67. diff -cr elm-org/src/init.c elm/src/init.c
  68. *** elm-org/src/init.c    Mon Dec  7 03:41:23 1992
  69. --- elm/src/init.c    Sun Jan 10 19:39:05 1993
  70. ***************
  71. *** 266,272 ****
  72. --- 266,274 ----
  73.         signal(SIGTERM, term_signal);     /* Terminate signal         */
  74.         signal(SIGILL,  ill_signal);        /* Illegal instruction      */
  75.         signal(SIGFPE,  fpe_signal);        /* Floating point exception */
  76. + #ifndef linux        /* linux has no SIGBUS */
  77.         signal(SIGBUS,  bus_signal);        /* Bus error              */
  78. + #endif /* linux */
  79.         signal(SIGSEGV, segv_signal);        /* Segmentation Violation   */
  80.         signal(SIGHUP,  hup_signal);        /* HangUp (line dropped)    */
  81.         signal(SIGUSR1, usr1_signal);        /* User request 1        */
  82. diff -cr elm-org/src/leavembox.c elm/src/leavembox.c
  83. *** elm-org/src/leavembox.c    Thu Dec 24 22:59:21 1992
  84. --- elm/src/leavembox.c    Sun Jan 10 17:11:42 1993
  85. ***************
  86. *** 102,107 ****
  87. --- 102,108 ----
  88.   
  89.   #ifndef BSD
  90.   # ifndef UTIMBUF
  91. + #  ifndef linux        /* linux defines utimbuf */
  92.   
  93.   struct utimbuf {
  94.       time_t    actime;        /** access time       **/ 
  95. ***************
  96. *** 108,113 ****
  97. --- 109,115 ----
  98.       time_t    modtime;    /** modification time **/
  99.          };
  100.   
  101. + #  endif /* linux */
  102.   # endif /* UTIMBUF */
  103.   #endif /* BSD */
  104.   
  105. diff -cr elm-org/utils/readmsg.c elm/utils/readmsg.c
  106. *** elm-org/utils/readmsg.c    Fri Dec 11 02:45:45 1992
  107. --- elm/utils/readmsg.c    Sun Jan 10 19:30:52 1993
  108. ***************
  109. *** 129,135 ****
  110. --- 129,137 ----
  111.   extern char *optarg;            /* for parsing the ...        */
  112.   extern int   optind;            /*  .. starting arguments    */
  113.   
  114. + #ifndef linux        /* linux has atol() defined as a macro */
  115.   extern long atol();
  116. + #endif /* linux */
  117.   
  118.   
  119.   void usage_error()
  120. -----------------------------------------------------------------------------
  121.  
  122. Send me a note if you want my config.sh file.
  123.  
  124. Arjan
  125.  
  126. --
  127. Arjan de Vet                             <Arjan.de.Vet@adv.win.tue.nl> (home)
  128. Eindhoven University of Technology, the Netherlands <devet@win.tue.nl> (work)
  129.