From: hatate@vid.cpg.sony.cp.jp (Kazumichi Hatate) Subject: samba's patch for NEWS-OS 6.1 Newsgroups: sony.sources.unix Sender: news@vid.cpg.sony.co.jp (Usenet News System) Date: 08 Mar 1996 18:51:41 JST Organization: Sony Co. Lines: 78 Nntp-Posting-Host: vez38 X-Newsreader: WinVN 0.99.3J Mime-Version: 1.0 NEWS-OS 6.1でsambaを使っている方はいますか? パッチが見当たらないので、作りました。 samba-1.9.15p8.tar.gzのMakefileとincludes.hに小さな変更を加えます。 ------ここから---------------------------------------------------------- *** Makefile.orig Thu Jan 18 20:54:38 1996 --- Makefile Fri Mar 8 11:50:19 1996 *************** *** 29,35 **** # You will need to use a ANSI C compiler. This means under SunOS 4 you can't # use cc, instead you will have to use gcc. ! # CC = gcc # This may help with some versions of make SHELL = /bin/sh --- 29,35 ---- # You will need to use a ANSI C compiler. This means under SunOS 4 you can't # use cc, instead you will have to use gcc. ! CC = /bin/cc # This may help with some versions of make SHELL = /bin/sh *************** *** 433,438 **** --- 433,445 ---- # contributed by sky@sm.sony.co.jp (Katushi Sato) # FLAGSM = -DNEWS42 -DKANJI=\"sjis\" # LIBSM = + + # This is for SONY NEWS, NEWS-OS 6.1 + # Contributed by hatate@vid.cpg.sony.co.jp (Kazumichi Hatate) + FLAGSM = -DSVR4 -DNEWS61 -DSHADOW_PWD -DALLOW_CHANGE_PASSWORD\ + -DGETTIMEOFDAY1 -D_SONYILS_H -DKANJI=\"sjis\" + LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb + # This is for OS/2 using EMX 0.9b # Contributed by jasonr@pec.co.nz (Jason Rumney) *** includes.h.orig Thu Jan 18 20:54:41 1996 --- includes.h Fri Mar 8 11:48:16 1996 *************** *** 379,385 **** --- 379,387 ---- #include #include #include + #ifndef NEWS61 #include + #endif /* NEWS61 */ #include #include #include -------ここまで--------------------------------------------------- euc2sjisなどのkanji関係の同名の関数でこける。 -> -D_SONYILS_H で余計なincludeを回避 gettimeofday()の引数の数がちがう -> -DGETTIMEOFDAY1で引数を一つに設定 sys/statfs.hがないので、おこられる -> #includeをはずす これ意外は-DSVR4と同じです。 最初gccが必要かとおもいましたが、/bin/ccの方がいいようです。 いまのところ、順調に動いてます。 旗手 hatate@vid.cpg.sony.co.jp