All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Recent patches for qemu block-cow.c etc breaks Win32 build becaus e of fsync()
@ 2006-06-08 21:02 Armistead, Jason
  2006-06-08 21:07 ` Johannes Schindelin
  0 siblings, 1 reply; 7+ messages in thread
From: Armistead, Jason @ 2006-06-08 21:02 UTC (permalink / raw)
  To: 'qemu-devel@nongnu.org'

Hi list

Looking at the code that was recently added

via http://lists.gnu.org/archive/html/qemu-devel/2006-06/msg00025.html

There were a lot of fsync() calls made, but this breaks the QEMU build
process on Win32 because fsync() is not available.

Suggest something like

#ifndef _WIN32
   fsync(blah);
#else
   _commit(blah);
#endif

which seems to work OK for me under MinGW / MSYS environment.

The _commit() function seems to be what Microsoft recommend to use, and it
compiles and runs OK with that in there, so I guess that MinGW is happy.

I'm still trying to get CVS up and running properly so I can contribute
patches in the right format.

Regards

Jason

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-06-08 22:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-08 21:02 [Qemu-devel] Recent patches for qemu block-cow.c etc breaks Win32 build becaus e of fsync() Armistead, Jason
2006-06-08 21:07 ` Johannes Schindelin
2006-06-08 21:14   ` Christian MICHON
2006-06-08 21:17   ` Paul Brook
2006-06-08 21:37     ` Johannes Schindelin
2006-06-08 21:50       ` Paul Brook
2006-06-08 22:00         ` Johannes Schindelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.