This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Patch to avoid using mkfifo under Cygwin
- From: Mo DeJong <supermo at bayarea dot net>
- To: Insight <insight at sources dot redhat dot com>
- Date: Thu, 12 Sep 2002 15:51:53 -0700
- Subject: Patch to avoid using mkfifo under Cygwin
- Organization: House of Mirth
Here is a patch that avoids calling mkfifo under Cygwin since
it is not functional.
Mo
2002-09-12 Mo DeJong <supermo@bayarea.net>
* 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);
}