From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17088 invoked by alias); 12 Sep 2002 22:51:14 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 17081 invoked from network); 12 Sep 2002 22:51:14 -0000 Received: from unknown (HELO mta6.snfc21.pbi.net) (206.13.28.240) by sources.redhat.com with SMTP; 12 Sep 2002 22:51:14 -0000 Received: from modrick ([66.120.11.181]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with SMTP id <0H2C009NLKTD6E@mta6.snfc21.pbi.net> for insight@sources.redhat.com; Thu, 12 Sep 2002 15:51:14 -0700 (PDT) Date: Thu, 12 Sep 2002 15:51:00 -0000 From: Mo DeJong Subject: Patch to avoid using mkfifo under Cygwin To: Insight Message-id: <20020912155153.5df1e557.supermo@bayarea.net> Organization: House of Mirth MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-SW-Source: 2002-q3/txt/msg00148.txt.bz2 Here is a patch that avoids calling mkfifo under Cygwin since it is not functional. Mo 2002-09-12 Mo DeJong * unix/tclUnixFCmd.c (DoCopyFile): Don't use mkfifo when compiling with Cygwin, since it is not supported. Index: unix/tclUnixFCmd.c =================================================================== RCS file: /cvs/src/src/tcl/unix/tclUnixFCmd.c,v retrieving revision 1.2 diff -u -r1.2 tclUnixFCmd.c --- unix/tclUnixFCmd.c 9 Sep 2001 23:56:09 -0000 1.2 +++ unix/tclUnixFCmd.c 12 Sep 2002 22:37:10 -0000 @@ -391,12 +391,18 @@ } return CopyFileAtts(src, dst, &srcStatBuf); } +#ifndef __CYGWIN__ + /* + * mkfifo is not supported under Cygwin even though it is prototyped + * in newlib headers. + */ case S_IFIFO: { if (mkfifo(dst, srcStatBuf.st_mode) < 0) { /* INTL: Native. */ return TCL_ERROR; } return CopyFileAtts(src, dst, &srcStatBuf); } +#endif /* __CYGWIN__ */ default: { return CopyFile(src, dst, &srcStatBuf); }