Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Couldn't Build 3.1.6 on Nextstep 3.3 m68k System



Irving Wolfe <irving@xxxxxxxxxxxxx> typed:
:The make ended thus:
:
:Updated `zshpaths.h'.
:Creating `zshxmods.h'.
:cc -c -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2  -o init.o init.c
:init.c: In function `init_io':
:init.c:360: too few arguments to function `fcntl'
:init.c:364: too few arguments to function `fcntl'
:*** Exit 1
:Stop.

Try the following; with F_GETFL, all args are ignored anyway.


--- Src/init.c.org	Wed Jun 30 02:33:52 1999
+++ Src/init.c	Mon Aug  2 16:05:27 1999
@@ -353,7 +353,7 @@
 	 * Try both stdin and stdout before trying /dev/tty. -- Bart
 	 */
 #if defined(HAVE_FCNTL_H) && defined(F_GETFL)
-#define rdwrtty(fd)	((fcntl(fd, F_GETFL) & O_RDWR) == O_RDWR)
+#define rdwrtty(fd)	((fcntl(fd, F_GETFL, 0) & O_RDWR) == O_RDWR)
 #else
 #define rdwrtty(fd)	1
 #endif


-- 
Geoff Wing : <gcw@xxxxxxxxx>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@xxxxxxxx>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@xxxxxxx>       Phone   : (Australia) 0413 431 874



Messages sorted by: Reverse Date, Date, Thread, Author