Add comment about dup(0) and lack of /dev/stdin on Win32. (#407431)

2007-01-02  Tor Lillqvist  <tml@novell.com>

	* glib-genmarshal.c (main): Add comment about dup(0) and
	lack of /dev/stdin on Win32. (#407431)


svn path=/trunk/; revision=5335
This commit is contained in:
Tor Lillqvist
2007-02-13 20:19:09 +00:00
committed by Tor Lillqvist
parent 8ec7d6ca3f
commit c6efde4f62
2 changed files with 3 additions and 1 deletions

View File

@@ -657,6 +657,7 @@ main (int argc,
gint fd;
if (strcmp (file, "/dev/stdin") == 0)
/* Mostly for Win32. This is equivalent to opening /dev/stdin */
fd = dup (0);
else
fd = open (file, O_RDONLY);