[gmime] use _fileno() on Windows



commit a9c375f7f742da9176eae6122e77ff969f84926c
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Thu May 7 23:29:56 2009 -0400

    use _fileno() on Windows
---
 gmime/gmime-stream-file.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gmime/gmime-stream-file.c b/gmime/gmime-stream-file.c
index 80497c7..37cec85 100644
--- a/gmime/gmime-stream-file.c
+++ b/gmime/gmime-stream-file.c
@@ -371,7 +371,7 @@ g_mime_stream_file_new (FILE *fp)
 	gint64 start;
 	
 #ifdef G_OS_WIN32
-	_setmode (fileno (fp), O_BINARY);
+	_setmode (_fileno (fp), O_BINARY);
 #endif
 	
 	if ((start = ftell (fp)) == -1)
@@ -406,7 +406,7 @@ g_mime_stream_file_new_with_bounds (FILE *fp, gint64 start, gint64 end)
 	GMimeStreamFile *fstream;
 	
 #ifdef G_OS_WIN32
-	_setmode (fileno (fp), O_BINARY);
+	_setmode (_fileno (fp), O_BINARY);
 #endif
 	
 	fstream = g_object_newv (GMIME_TYPE_STREAM_FILE, 0, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]