[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated
From: |
David Levine |
Subject: |
[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 3ef341abe440ece07f8deed59fb026ab020e805a |
Date: |
Tue, 17 Jan 2012 00:35:37 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".
The branch, master has been updated
via 3ef341abe440ece07f8deed59fb026ab020e805a (commit)
via 7b3154538d24958c2e3ed0e20e80bb33d3d98a3a (commit)
via 23a50c38aa582542f8cf3ef928396faad89cbae7 (commit)
from e42523dbf5820c4d1b0c3496b2d6a226fb31832e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=3ef341abe440ece07f8deed59fb026ab020e805a
commit 3ef341abe440ece07f8deed59fb026ab020e805a
Author: David Levine <address@hidden>
Date: Mon Jan 16 18:35:21 2012 -0600
Removed HAVE_STRUCT_TM_TM_GMTOFF support because it didn't work on Cygwin
and isn't needed: timezone, tzname, and tzset() are all POSIX.
diff --git a/configure.ac b/configure.ac
index 9abe1b5..3491f96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -767,7 +767,6 @@ dnl ----------------
dnl CHECK STRUCTURES
dnl ----------------
-AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[#include <time.h>])
AC_CHECK_MEMBERS(struct utmp.ut_type,,,[#include <utmp.h>])
AC_STRUCT_DIRENT_D_TYPE
diff --git a/sbr/dtime.c b/sbr/dtime.c
index 7ec7551..aa34621 100644
--- a/sbr/dtime.c
+++ b/sbr/dtime.c
@@ -12,16 +12,6 @@
#include <h/tws.h>
#include <time.h>
-#if !defined(HAVE_STRUCT_TM_TM_GMTOFF)
-extern int daylight;
-extern long timezone;
-extern char *tzname[];
-#endif
-
-#ifndef abs
-# define abs(a) (a >= 0 ? a : -a)
-#endif
-
/*
* The number of days in the year, accounting for leap years
*/
@@ -109,14 +99,8 @@ dlocaltime (time_t *clock)
if (tm->tm_isdst)
tw.tw_flags |= TW_DST;
-#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 */
-#else
tzset();
tw.tw_zone = -(timezone / 60);
-#endif
tw.tw_flags &= ~TW_SDAY;
tw.tw_flags |= TW_SEXP;
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=7b3154538d24958c2e3ed0e20e80bb33d3d98a3a
commit 7b3154538d24958c2e3ed0e20e80bb33d3d98a3a
Author: David Levine <address@hidden>
Date: Mon Jan 16 18:33:57 2012 -0600
Pass int instead of char to iscntrl() and isspace() because that's what
they require, and gcc on Cygwin warns about it.
diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c
index de20013..9c1eb16 100644
--- a/sbr/fmt_scan.c
+++ b/sbr/fmt_scan.c
@@ -155,7 +155,10 @@ cptrimmed(char **dest, char *str, unsigned int wid, char
fill, size_t n) {
sp += char_len;
#else
end--;
- if (iscntrl(*sp) || isspace(*sp)) {
+ /* isnctrl(), etc., take an int argument. Cygwin's ctype.h
+ intentionally warns if they are passed a char. */
+ int c = *sp;
+ if (iscntrl(c) || isspace(c)) {
sp++;
#endif
if (!prevCtrl) {
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=23a50c38aa582542f8cf3ef928396faad89cbae7
commit 23a50c38aa582542f8cf3ef928396faad89cbae7
Author: David Levine <address@hidden>
Date: Mon Jan 16 18:30:40 2012 -0600
Added EXEEXT support, for Cygwin.
diff --git a/configure.ac b/configure.ac
index e4b0e9f..9abe1b5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -218,6 +218,8 @@ fi
AC_PROG_CC
+AC_SUBST(EXEEXT)dnl
+
AC_CACHE_CHECK(whether preprocessor supports -Wunused-macros,
nmh_cv_has_unusedmacros,
[nmh_saved_cppflags="$CPPFLAGS"
diff --git a/uip/Makefile.in b/uip/Makefile.in
index 39614d6..f11b532 100644
--- a/uip/Makefile.in
+++ b/uip/Makefile.in
@@ -13,6 +13,7 @@ exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
etcdir = @sysconfdir@
+EXEEXT = @EXEEXT@
CC = @CC@
CFLAGS = @CFLAGS@
@@ -246,7 +247,7 @@ install: install-cmds install-misc install-lcmds
install-scmds
install-cmds:
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
for cmd in $(CMDS); do \
- $(INSTALL_PROGRAM) $$cmd $(DESTDIR)$(bindir)/$$cmd; \
+ $(INSTALL_PROGRAM) $$cmd$(EXEEXT) $(DESTDIR)$(bindir)/$$cmd$(EXEEXT);
\
done
# install links
@@ -277,23 +278,23 @@ install-misc:
# install commands with special installation needs (thus no $(SCMDS) use here)
install-scmds:
if test x$(SETGID_MAIL) != x; then \
- $(INSTALL_PROGRAM) -g $(MAIL_SPOOL_GRP) -m 2755 inc
$(DESTDIR)$(bindir)/$$cmd; \
+ $(INSTALL_PROGRAM) -g $(MAIL_SPOOL_GRP) -m 2755 inc
$(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \
else \
- $(INSTALL_PROGRAM) inc $(DESTDIR)$(bindir)/$$cmd; \
+ $(INSTALL_PROGRAM) inc $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \
fi
uninstall:
for cmd in $(CMDS); do \
- rm -f $(DESTDIR)$(bindir)/$$cmd; \
+ rm -f $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \
done
for lcmd in $(LCMDS); do \
- rm -f $(DESTDIR)$(bindir)/$$lcmd; \
+ rm -f $(DESTDIR)$(bindir)/$$lcmd$(EXEEXT); \
done
for misc in $(MISC); do \
- rm -f $(DESTDIR)$(libdir)/$$misc; \
+ rm -f $(DESTDIR)$(libdir)/$$misc$(EXEEXT); \
done
for cmd in $(SCMDS); do \
- rm -f $(DESTDIR)$(bindir)/$$cmd; \
+ rm -f $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \
done
# ========== DEPENDENCIES FOR CLEANUP ==========
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 3 ++-
sbr/dtime.c | 16 ----------------
sbr/fmt_scan.c | 5 ++++-
uip/Makefile.in | 15 ++++++++-------
4 files changed, 14 insertions(+), 25 deletions(-)
hooks/post-receive
--
The nmh Mail Handling System
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 3ef341abe440ece07f8deed59fb026ab020e805a,
David Levine <=