[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LYNX-DEV lynx2-7-1ac0.96 patches
From: |
Philippe De Muyter |
Subject: |
LYNX-DEV lynx2-7-1ac0.96 patches |
Date: |
Mon, 24 Nov 1997 19:00:01 +0100 (MET) |
Hello,
Thanks for having integrated my patches into ac095.
Here are some new patches, applicable to ac096.
Philippe De Muyter (address@hidden)
* Use wborder only if configure finds it, not ifdef FANCY_CURSES. - PHDM
* List of systems having strerror replaced by configure test. - PHDM
* Beautifying of mktime.c (`now' was misleading). - PHDM
--- /tmp/dm37220 Mon Nov 24 18:00:58 1997
+++ ./src/LYCurses.c Mon Nov 24 15:56:39 1997
@@ -236,7 +236,7 @@
* specifiy our own ASCII characters for the corners and call
* wborder() instead of box(). - kw
*/
-#ifdef FANCY_CURSES
+#ifdef HAVE_WBORDER
if (!boxvert || !boxhori)
box(win, boxvert, boxhori);
else if (boxvert == '*' || boxhori == '*')
--- /tmp/dm37220 Mon Nov 24 18:00:58 1997
+++ ./src/mktime.c Mon Nov 24 16:20:55 1997
@@ -27,9 +27,9 @@ mkgmtime(t)
register struct tm *t;
{
register short month, year;
- register long time;
+ register time_t time;
static int m_to_d[12] =
-{0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334};
+ {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334};
month = t->tm_mon;
year = t->tm_year + month / 12 + 1900;
@@ -66,12 +66,12 @@ mkgmtime(t)
mktime(t)
struct tm *t;
{
- time_t now;
+ time_t time;
tzset();
- now = mkgmtime(t) + timezone;
+ time = mkgmtime(t) + timezone;
if (t->tm_isdst > 0
- || (t->tm_isdst < 0 && localtime(&now)->tm_isdst))
- now -= 3600;
- return(now);
+ || (t->tm_isdst < 0 && localtime(&time)->tm_isdst))
+ time -= 3600;
+ return(time);
}
--- /tmp/dm37220 Mon Nov 24 18:00:59 1997
+++ ./WWW/Library/Implementation/HTTCP.c Mon Nov 24 15:55:45 1997
@@ -206,15 +206,10 @@
#define ER_NO_TRANS_DONE
#endif /* VMS */
-#if defined(NeXT) || defined(THINK_C)
+#ifdef HAVE_STRERROR
strerror(SOCKET_ERRNO));
#define ER_NO_TRANS_DONE
-#endif /* NeXT || THINK_C */
-
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(BSDI)
- strerror(SOCKET_ERRNO));
-#define ER_NO_TRANS_DONE
-#endif /* __NetBSD__ || __FreeBSD__ || BSDI */
+#endif /* HAVE_STRERROR */
#ifndef ER_NO_TRANS_DONE
(SOCKET_ERRNO < sys_nerr ?
--- /tmp/dm37220 Mon Nov 24 18:01:00 1997
+++ ./configure.in Mon Nov 24 15:49:21 1997
@@ -318,6 +318,7 @@ slang)
getgroups \
putenv \
readdir \
+ strerror \
waitpid \
)
AC_REPLACE_FUNCS( \
@@ -351,6 +352,7 @@ slang)
AC_CHECK_FUNCS( \
cbreak \
keypad \
+ wborder \
)
fi
--- /tmp/dm37220 Mon Nov 24 18:01:00 1997
+++ ./config.hin Mon Nov 24 15:50:51 1997
@@ -31,6 +31,7 @@
#undef HAVE_PUTENV
#undef HAVE_READDIR
#undef HAVE_SIZECHANGE /* defined by CF_SIZECHANGE */
+#undef HAVE_STRERROR
#undef HAVE_STRING_H
#undef HAVE_SYS_DIR_H /* defined by AC_HEADER_DIRENT */
#undef HAVE_SYS_FCNTL_H /* have <sys/fcntl.h> */
@@ -44,6 +45,7 @@
#undef HAVE_UNISTD_H /* have <unistd.h> */
#undef HAVE_UTMP
#undef HAVE_WAITPID
+#undef HAVE_WBORDER
#undef IGNORE_CTRL_C /* FIXME: make tests? */
#undef INSTALL_ARGS /* CF_PATH_PROG(install) */
#undef INSTALL_PATH /* CF_PATH_PROG(install) */
- LYNX-DEV lynx2-7-1ac0.96 patches,
Philippe De Muyter <=