Path: galaxy.trc.rwcp.or.jp!news.trc!etlnews.etl.go.jp!wnoc-tyo-news!wnoc-sfc-news!wnoc-kyo-news!kuis-news!news.media.kyoto-u.ac.jp!not-for-mail
From: NAKAJI Hiroyuki <nakaji@zeisei.dpri.kyoto-u.ac.jp>
Newsgroups: japan.comp.sony-news,fj.sys.news,fj.mail,japan.mail.system
Subject: PATCH of qpopper-2.52 for NEWS-OS 4.x?
Date: 10 Jul 1998 20:14:47 +0900
Organization: Disaster Prevention Research Institute, Kyoto University
Lines: 108
Message-ID: <x7d8be555k.fsf@zeisei6.dpri.kyoto-u.ac.jp>
NNTP-Posting-Host: zeisei6.dpri.kyoto-u.ac.jp
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=ISO-2022-JP
X-Newsreader: Gnus v5.6.11/Emacs 19.34
Xref: galaxy.trc.rwcp.or.jp fj.sys.news:3778 fj.mail:9881
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.mail&nb=9881&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.

$BCf<#!w5~BgKI:R8&$G$9!#(B

qpopper-2.52 $B$N%3%s%Q%$%k$r(B

NEWS-OS 4.2.1R FCS#5 #13
binutils-2.9.1
gcc-2.8.1

$B$GDL$9$?$a$@$1$N%Q%C%A$G$9!#(BNEWSOS4 $B$NH=Dj$@$1F~$l$F$_$^$7$?$,!"$$$+$,(B
$B$J$b$N$G$7$g$&!#(B
----====----====----====----
NAKAJI Hiroyuki ($BCf<#(B $B909T(B)

===================================================================
RCS file: mktemp.c,v
retrieving revision 1.1
diff -u -r1.1 mktemp.c
--- mktemp.c1998/07/10 11:13:041.1
+++ mktemp.c1998/07/10 11:13:11
@@ -42,6 +42,13 @@
 #include <stdio.h>
 #include <ctype.h>
 
+#ifdef sony_news
+#include <sys/newsos.h>
+#if NEWSOS4
+#define NEWS4 1
+#endif
+#endif
+
 #include <popper.h>
 
 #ifndef S_ISDIR
===================================================================
RCS file: pop_msg.c,v
retrieving revision 1.1
diff -u -r1.1 pop_msg.c
--- pop_msg.c1998/07/10 10:44:041.1
+++ pop_msg.c1998/07/10 10:44:40
@@ -10,6 +10,7 @@
 
 #include <config.h>
 #include <stdio.h>
+#include <ctype.h>
 #include <sys/types.h>
 #include <string.h>
 #if HAVE_STRINGS_H
===================================================================
RCS file: pop_xmit.c,v
retrieving revision 1.1
diff -u -r1.1 pop_xmit.c
--- pop_xmit.c1998/07/10 10:37:481.1
+++ pop_xmit.c1998/07/10 11:12:47
@@ -29,6 +29,13 @@
 #include <fcntl.h>
 #endif
 
+#ifdef sony_news
+#include <sys/newsos.h>
+#if NEWSOS4
+#define NEWS4 1
+#endif
+#endif
+
 #include <popper.h>
 
 /*
@@ -98,7 +105,7 @@
 POP *p;
 {
 
-#ifdef NeXT
+#if defined(NeXT) || defined(NEWS4)
     unionwait    stat;
 #else
     int    stat;
@@ -134,14 +141,14 @@
 MAIL_COMMAND, errno));
         default:
 
-#ifdef NEXT
+#if defined(NeXT) || defined(NEWS4)
             while((id = wait(&stat)) >=0 && id != pid);
 #else
             id = waitpid(pid, &stat, 0);
 #endif
             if (!p->debug) (void)unlink (temp_xmit);
 
-#ifdef NEXT
+#if defined(NeXT) || defined(NEWS4)
             if (!WIFEXITED (stat))
 #else
             if ((!WIFEXITED (stat)) || (WEXITSTATUS (stat) != 0))
===================================================================
RCS file: popper.h,v
retrieving revision 1.1
diff -u -r1.1 popper.h
--- popper.h1998/07/10 11:09:591.1
+++ popper.h1998/07/10 11:10:20
@@ -138,7 +138,7 @@
 #defineTIME_Ttime_t
 #define SIZE_Tsize_t
 
-#ifdef NeXT
+#if defined(NeXT) || defined(NEWS4)
 #undef PID_T
 #define PID_Tint
 #endif
