[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nmh-commits] nmh ChangeLog configure.in config/Makefile.in s...
From: |
Peter Maydell |
Subject: |
[Nmh-commits] nmh ChangeLog configure.in config/Makefile.in s... |
Date: |
Sun, 04 May 2008 16:09:09 +0000 |
CVSROOT: /cvsroot/nmh
Module name: nmh
Changes by: Peter Maydell <pm215> 08/05/04 16:09:09
Modified files:
. : ChangeLog configure.in
config : Makefile.in
sbr : Makefile.in dtime.c
Added files:
sbr : memmove.c strerror.c
Log message:
* bug #23163: various minor fixes for the benefit of older Unixes
(specifically SunOS 4): reintroduce strerror() substitute
implementation;
provide memmove() substitute implementation
* bug #23163: fix broken 'build outside source directory' feature
* bug #23162: sbr/dtime.c: fix stray HAVE_TM_GMTOFF that wasn't updated
to the new macro name.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/ChangeLog?cvsroot=nmh&r1=1.262&r2=1.263
http://cvs.savannah.gnu.org/viewcvs/nmh/configure.in?cvsroot=nmh&r1=1.82&r2=1.83
http://cvs.savannah.gnu.org/viewcvs/nmh/config/Makefile.in?cvsroot=nmh&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/Makefile.in?cvsroot=nmh&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/dtime.c?cvsroot=nmh&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/memmove.c?cvsroot=nmh&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/strerror.c?cvsroot=nmh&rev=1.4
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/nmh/nmh/ChangeLog,v
retrieving revision 1.262
retrieving revision 1.263
diff -u -b -r1.262 -r1.263
--- ChangeLog 30 Apr 2008 18:47:02 -0000 1.262
+++ ChangeLog 4 May 2008 16:09:08 -0000 1.263
@@ -1,3 +1,16 @@
+2008-05-04 Peter Maydell <address@hidden>
+
+ * bug #23163: various minor fixes for the benefit of
+ older Unixes (specifically SunOS 4):
+ reintroduce strerror() substitute implementation
+ provide memmove() substitute implementation
+
+ * bug #23163: fix accidentally broken 'build outside
+ source directory' feature
+
+ * bug #23162: sbr/dtime.c: fix stray HAVE_TM_GMTOFF that
+ wasn't updated to the new macro name.
+
2008-04-30 Peter Maydell <address@hidden>
* mts/smtp/smtp.c: provide a callback for SASL_CB_AUTHNAME
Index: configure.in
===================================================================
RCS file: /cvsroot/nmh/nmh/configure.in,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -b -r1.82 -r1.83
--- configure.in 11 Apr 2008 14:12:55 -0000 1.82
+++ configure.in 4 May 2008 16:09:08 -0000 1.83
@@ -1,7 +1,7 @@
dnl
dnl configure.in -- autoconf template for nmh
dnl
-dnl $Id: configure.in,v 1.82 2008/04/11 14:12:55 opk Exp $
+dnl $Id: configure.in,v 1.83 2008/05/04 16:09:08 pm215 Exp $
dnl
dnl 2.13 definitely chokes; 2.53 is the earliest version I've tested.
@@ -534,7 +534,7 @@
[Define to 1 if you have the `sigsetjmp'.]) AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
-AC_REPLACE_FUNCS(snprintf strdup)
+AC_REPLACE_FUNCS(memmove snprintf strerror strdup)
dnl Look for the initgroups() declaration. On AIX 4.[13], Solaris 4.1.3, and
dnl ULTRIX 4.2A the function is defined in libc but there's no declaration in
Index: config/Makefile.in
===================================================================
RCS file: /cvsroot/nmh/nmh/config/Makefile.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- config/Makefile.in 24 Dec 2005 17:53:26 -0000 1.4
+++ config/Makefile.in 4 May 2008 16:09:09 -0000 1.5
@@ -1,7 +1,7 @@
#
# Makefile for config subdirectory
#
-# $Id: Makefile.in,v 1.4 2005/12/24 17:53:26 pm215 Exp $
+# $Id: Makefile.in,v 1.5 2008/05/04 16:09:09 pm215 Exp $
#
# nmh version
@@ -58,7 +58,7 @@
${srcdir}/version.sh $(VERSION) > version.c
config.o: config.c
- $(COMPILE2) config.c
+ $(COMPILE2) $<
install:
Index: sbr/Makefile.in
===================================================================
RCS file: /cvsroot/nmh/nmh/sbr/Makefile.in,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- sbr/Makefile.in 7 Jan 2006 15:22:20 -0000 1.24
+++ sbr/Makefile.in 4 May 2008 16:09:09 -0000 1.25
@@ -1,7 +1,7 @@
#
# Makefile for sbr subdirectory
#
-# $Id: Makefile.in,v 1.24 2006/01/07 15:22:20 bress Exp $
+# $Id: Makefile.in,v 1.25 2008/05/04 16:09:09 pm215 Exp $
#
SHELL = /bin/sh
@@ -34,6 +34,8 @@
LINT = @LINT@
LINTFLAGS = @LINTFLAGS@
+LIBOBJS = @LIBOBJS@
+
mailspool = @mailspool@
sendmailpath = @sendmailpath@
@@ -78,9 +80,9 @@
m_msgdef.c mf.c utils.c
# source for compatibility functions
-COMPAT = snprintf.c strdup.c
+COMPAT = memmove.c snprintf.c strdup.c strerror.c
-OBJS = $(SRCS:.c=.o)
+OBJS = $(SRCS:.c=.o) $(LIBOBJS)
# auxiliary files
AUX = Makefile.in sigmsg.awk dtimep.lex
@@ -102,13 +104,13 @@
# Note that some lexes (for example flex 2.5.4) require that there
# be no space between -o and the output filename.
dtimep.c: dtimep.lex
- $(LEX) -o$@ dtimep.lex
+ $(LEX) -o$@ $<
client.o: client.c
- $(COMPILE2) client.c
+ $(COMPILE2) $<
mts.o: mts.c
- $(COMPILE2) mts.c
+ $(COMPILE2) $<
pidstatus.o: sigmsg.h
Index: sbr/dtime.c
===================================================================
RCS file: /cvsroot/nmh/nmh/sbr/dtime.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- sbr/dtime.c 11 Apr 2008 14:12:55 -0000 1.5
+++ sbr/dtime.c 4 May 2008 16:09:09 -0000 1.6
@@ -2,7 +2,7 @@
/*
* dtime.c -- time/date routines
*
- * $Id: dtime.c,v 1.5 2008/04/11 14:12:55 opk Exp $
+ * $Id: dtime.c,v 1.6 2008/05/04 16:09:09 pm215 Exp $
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
@@ -169,7 +169,7 @@
if (tm->tm_isdst)
tw.tw_flags |= TW_DST;
-#ifdef HAVE_TM_GMTOFF
+#ifdef HAVE_STRUCT_TM_TM_GMTOFF
tw.tw_zone = tm->tm_gmtoff / 60;
if (tm->tm_isdst) /* if DST is in effect */
tw.tw_zone -= 60; /* reset to normal offset */
Index: sbr/memmove.c
===================================================================
RCS file: sbr/memmove.c
diff -N sbr/memmove.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ sbr/memmove.c 4 May 2008 16:09:09 -0000 1.1
@@ -0,0 +1,11 @@
+/* public domain function from Jan Wolter Unix Incompatibility Notes */
+/* http://unixpapa.com/incnote/ */
+char *memmove(char *dst, char *src, int n)
+{
+ if (src > dst)
+ for ( ; n > 0; n--)
+ *(dst++)= *(src++);
+ else
+ for (dst+= n-1, src+= n-1; n > 0; n--)
+ *(dst--)= *(src--);
+}
Index: sbr/strerror.c
===================================================================
RCS file: sbr/strerror.c
diff -N sbr/strerror.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ sbr/strerror.c 4 May 2008 16:09:09 -0000 1.4
@@ -0,0 +1,21 @@
+
+/*
+ * strerror.c -- get error message string
+ *
+ * $Id: strerror.c,v 1.4 2008/05/04 16:09:09 pm215 Exp $
+ */
+
+#include <h/mh.h>
+
+extern int sys_nerr;
+extern char *sys_errlist[];
+
+
+char *
+strerror (int errnum)
+{
+ if (errnum > 0 && errnum < sys_nerr)
+ return sys_errlist[errnum];
+ else
+ return NULL;
+}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nmh-commits] nmh ChangeLog configure.in config/Makefile.in s...,
Peter Maydell <=