From: matz@... (Yukihiro Matsumoto) Date: 1997-02-19T01:33:47+09:00 Subject: [ruby-list:2185] Re: Compilation on NeXT まつもと ゆきひろです. In message "[ruby-list:2165] Compilation on NeXT" on 97/02/18, maeda syuugo writes: |みなさん、はじめまして。 |NEXTSTEP 3.3J (Intel) と WIn95 で ruby を使わせて頂いています。 NEXTSTEPに関しては白山さんが詳しいと思うのですが,とりあえず glob.cとsocket.cは修正しました.パッチを付けておきます. process.cのwarningは無視してください. |ext/Setup で | |option nodynamic NEXTSTEPだとダイナミックリンクが使えたと思うんですけど….ダ メでした? --- glob.c~ Tue Dec 24 15:09:15 1996 +++ glob.c Wed Feb 19 00:16:25 1997 @@ -68,7 +68,9 @@ # include #endif /* !HAVE_STRING_H */ +#ifndef bcopy # define bcopy(s, d, n) (memcpy ((d), (s), (n))) +#endif #ifdef _AIX #pragma alloca --- ext/socket/socket.c~ Fri Jan 31 10:34:54 1997 +++ ext/socket/socket.c Wed Feb 19 00:24:01 1997 @@ -207,14 +207,15 @@ mode = fcntl(fd, F_GETFL, 0); #ifdef O_NDELAY - fcntl(fd, F_SETFL, mode|O_NDELAY); +# define NONBLOCKING O_NDELAY #else #ifdef O_NBIO - fcntl(fd, F_SETFL, mode|O_NBIO); +# define NONBLOCKING O_NBIO #else - fcntl(fd, F_SETFL, mode|O_NONBLOCK); +# define NONBLOCKING O_NONBLOCK #endif #endif + fcntl(fd, F_SETFL, mode|NONBLOCKING); for (;;) { status = connect(fd, sockaddr, len); if (status < 0) { @@ -244,7 +245,7 @@ return status; } } - mode &= ~O_NONBLOCK; + mode &= ~NONBLOCKING; fcntl(fd, F_SETFL, mode); return 0; }