]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port:
authorserassio <>
Sun, 6 Nov 2005 18:16:22 +0000 (18:16 +0000)
committerserassio <>
Sun, 6 Nov 2005 18:16:22 +0000 (18:16 +0000)
- On Windows /dev/null is not available

src/unlinkd.cc

index cb78da6acde230eb1f17a6cfc4aa2f250739f0b4..a9ea7ab9cec88d2fbeaee77becaea021b23a6cb7 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: unlinkd.cc,v 1.52 2003/02/21 22:50:12 robertc Exp $
+ * $Id: unlinkd.cc,v 1.53 2005/11/06 11:16:22 serassio Exp $
  *
  * DEBUG: section 2     Unlink Daemon
  * AUTHOR: Duane Wessels
@@ -50,7 +50,10 @@ main(int argc, char *argv[])
     setbuf(stdin, NULL);
     setbuf(stdout, NULL);
     close(2);
+#ifndef _SQUID_MSWIN_
+
     open("/dev/null", O_RDWR);
+#endif
 
     while (fgets(buf, UNLINK_BUF_LEN, stdin)) {
         if ((t = strchr(buf, '\n')))