Path: galaxy.trc.rwcp.or.jp!news.trc!imnet3!news.imnet.ad.jp!news.join.ad.jp!Q.T.Honey!onodera-news!sage!news.ksw.feedmania.org!newsfeed.mesh.ad.jp!newssvt07.tk!tyo212.gate.nec!newssv1.nec!newssv.fc.nec!cadup.com1.fc.nec.co.jp!oota
From: oota@ppd.fc.nec.co.jp (Oota Toshiya)
Newsgroups: fj.sources,fj.sources.d,fj.sys.ews4800
Subject: wget-1.5.3 EWS patch
Followup-To: fj.sys.ews4800
Date: 22 May 2000 07:18:22 GMT
Organization: NEC
Lines: 72
Message-ID: <8gamvu$6pb$1@cadup.com1.fc.nec.co.jp>
NNTP-Posting-Host: mickey.ppd.fc.nec.co.jp
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
X-Trace: cadup.com1.fc.nec.co.jp 958979902 6955 10.32.14.60 (22 May 2000 07:18:22 GMT)
X-Complaints-To: usenet@cadup.com1.fc.nec.co.jp
NNTP-Posting-Date: 22 May 2000 07:18:22 GMT
X-Newsreader: gn [Version 1.40 Jun.1,1998 (Unix)]
Xref: galaxy.trc.rwcp.or.jp fj.sources:5441 fj.sources.d:3564 fj.sys.ews4800:994
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.sources.d&nb=3564&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$BB@ED(B@NEC$B$G$9!#(B

wget-1.5.3 $B$r(B EWS$B$G%3%s%Q%$%k$9$k$?$a$N(B quick hack$B$G$9!#(B

$B=)EDBg3X$N%Q%C%A$K<c43DI2C$7$^$7$?!#(B

$B8!>Z$O(B EWS4800/320,R13.6$B$G9T$J$C$F$$$^$9!#(B

-----------------------------------------------------------------------------
diff -urN wget-1.5.3/config.guess wget-1.5.3new/config.guess
--- wget-1.5.3/config.guessFri Feb 14 10:15:51 1997
+++ wget-1.5.3new/config.guessMon May 22 16:10:00 2000
@@ -541,7 +541,7 @@
     mc68*:A/UX:*:*)
 echo m68k-apple-aux${UNAME_RELEASE}
 exit 0 ;;
-    R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
+    R3000:*System_V*:*:* | R*000:UNIX_S*V:*:*)
 if [ -d /usr/nec ]; then
         echo mips-nec-sysv${UNAME_RELEASE}
 else
diff -urN wget-1.5.3/src/config.h.in wget-1.5.3new/src/config.h.in
--- wget-1.5.3/src/config.h.inSat Jun  6 10:36:34 1998
+++ wget-1.5.3new/src/config.h.inMon May 22 16:10:04 2000
@@ -34,7 +34,11 @@
  #pragma alloca
 #  else
 #   ifndef alloca /* predefined by HP cc +Olibcalls */
+#    ifdef __STDC__
+void *alloca ();
+#    else
 char *alloca ();
+#    endif /* __STDC__ */
 #   endif
 #  endif
 # endif
diff -urN wget-1.5.3/src/http.c wget-1.5.3new/src/http.c
--- wget-1.5.3/src/http.cThu Sep 10 22:14:44 1998
+++ wget-1.5.3new/src/http.cFri May 19 16:24:56 2000
@@ -1277,13 +1277,25 @@
      systems I've tested it on).  */
 
   /* RFC1123: Thu, 29 Jan 1998 22:12:57 */
+#ifdef _nec_ews
+  if (check_end ((char *)strptime (time_string, "%a, %d %b %Y %T", &t)))
+#else
   if (check_end (strptime (time_string, "%a, %d %b %Y %T", &t)))
+#endif
     return mktime_from_utc (&t);
   /* RFC850:  Thu, 29-Jan-98 22:12:57 */
+#ifdef _nec_ews
+  if (check_end ((char *)strptime (time_string, "%a, %d-%b-%y %T", &t)))
+#else
   if (check_end (strptime (time_string, "%a, %d-%b-%y %T", &t)))
+#endif
     return mktime_from_utc (&t);
   /* asctime: Thu Jan 29 22:12:57 1998 */
+#ifdef _nec_ews
+  if (check_end ((char *)strptime (time_string, "%a %b %d %T %Y", &t)))
+#else
   if (check_end (strptime (time_string, "%a %b %d %T %Y", &t)))
+#endif
     return mktime_from_utc (&t);
   /* Failure.  */
   return -1;
-----------------------------------------------------------------------------



----
$BB@ED(B $B=S:H!w(BNEC$B%=%j%e!<%7%g%s%:(B $B%3%s%T%e!<%?4k2hK\It(B($BI\Cf(B $BEl5~(B $BF|K\(B $BCO5e(B $BB@M[7O(B) 
(samba-jp ML maintainer/mutt-jp ML server maintainer)
