zsh-workers
 help / color / mirror / code / Atom feed
From: mason@primenet.com.au (Geoff Wing)
To: zsh-workers@sunsite.auc.dk
Subject: Re: Couldn't Build 3.1.6 on Nextstep 3.3 m68k System
Date: 2 Aug 1999 06:06:29 GMT	[thread overview]
Message-ID: <slrn7qadb5.3pf.mason@coral.primenet.com.au> (raw)
In-Reply-To: <Pine.NXT.3.96.990801214243.13380A-100000@reddog>

Irving Wolfe <irving@Happy-Man.com> 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@pobox.com>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@zsh.org>       Phone   : (Australia) 0413 431 874


  parent reply	other threads:[~1999-08-02  6:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-02  4:45 Irving Wolfe
1999-08-02  4:51 ` Timothy J Luoma
1999-08-02  5:57   ` Irving_Wolfe
1999-08-02  6:06 ` Geoff Wing [this message]
1999-08-02  6:52   ` Irving_Wolfe
1999-08-02  7:51     ` Peter Stephenson
1999-08-02  9:29       ` Bart Schaefer
1999-08-02  9:01         ` Peter Stephenson
1999-08-05  5:48     ` Andrej Borsenkow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrn7qadb5.3pf.mason@coral.primenet.com.au \
    --to=mason@primenet.com.au \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).