cedric pushed a commit to branch master.

commit c4beec01275b7193d0bac8f93567b554d065e0e9
Author: Cedric Bail <[email protected]>
Date:   Thu Aug 8 17:05:14 2013 +0900

    eina: fix compilation of Eina_File on windows.
---
 src/lib/eina/eina_file_common.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index 944c4cf..2039f97 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -380,7 +380,12 @@ eina_file_virtualize(const void *data, unsigned long long 
length, Eina_Bool copy
    file->mtime_nsec = ti;
 #endif
    file->refcount = 1;
+#ifndef _WIN32
    file->fd = -1;
+#else
+   file->handle = NULL;
+   file->fm = NULL;
+#endif
    file->virtual = EINA_TRUE;
    file->map = eina_hash_new(EINA_KEY_LENGTH(eina_file_map_key_length),
                              EINA_KEY_CMP(eina_file_map_key_cmp),

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to