TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: All
from: andrew clarke
date: 2015-05-29 18:46:28
subject: Msged patch for FreeBSD

FreeBSD has an internal function named undelete() in
/usr/include/unistd.h which conflicts with undelete() in Msged. The
following patch belatedly fixes this...

Index: editmail.h
===================================================================
RCS file: /cvsroot/husky/msged/editmail.h,v
retrieving revision 1.2
diff -u -r1.2 editmail.h
--- editmail.h	22 Jul 1998 21:54:50 -0000	1.2
+++ editmail.h	29 May 2015 08:16:36 -0000
{at}{at} -42,7 +42,7 {at}{at}
 static void nada(void);
 static void emacskill(void);
 static void killeol(void);
-static void undelete(void);
+static void do_undelete(void);
 static void bytecount(void);
 static void do_help(void);
 static void doscmd(void);
{at}{at} -59,7 +59,7 {at}{at}
 {
     NULL, NULL, NULL, NULL, e_uudecode, NULL, NULL, NULL,     /* 0 */
     backspace, tabit, NULL, emacskill, NULL, newline, NULL, NULL,  /* 8 */
-    NULL, NULL, NULL, NULL, delword, undelete, NULL, NULL,    /* 10 */
+    NULL, NULL, NULL, NULL, delword, do_undelete, NULL, NULL,    /* 10 */
     NULL, delete_line, NULL, die, NULL, NULL, NULL, NULL,     /* 18 */
     NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,           /* 20 */
     NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,           /* 28 */
Index: wrap.c
===================================================================
RCS file: /cvsroot/husky/msged/wrap.c,v
retrieving revision 1.14
diff -u -r1.14 wrap.c
--- wrap.c	9 Mar 2003 17:21:30 -0000	1.14
+++ wrap.c	29 May 2015 08:16:37 -0000
{at}{at} -1671,11 +1671,11 {at}{at}
 }
 
 /*
- *  undelete(); If there is a line to undelete, undeletes the last line
+ *  do_undelete(); If there is a line to undelete, undeletes the last line
  *  deleted and inserts it before the current line.
  */
 
-static void undelete(void)
+static void do_undelete(void)
 {
     LINE *nl;

--- Msged/BSD 6.1.2
* Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)
SEEN-BY: 633/267 712/848
@PATH: 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.