modules/controller_midi.c: #ifdef G_OS_WIN32 for a O_NONBLOCK

This commit is contained in:
Michael Schumacher 2004-06-19 20:57:17 +00:00
parent 63c0ed2ce8
commit d6b6ba7423
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-06-19 Michael Schumacher <schumaml@cvs.gnome.org>
* modules/controller_midi.c: #ifdef G_OS_WIN32 for an O_NONBLOCK
2004-06-19 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/jpeg.c: more changes to save dialog. Moved

View File

@ -343,7 +343,12 @@ midi_set_device (ControllerMidi *midi,
{
gint fd;
#ifdef G_OS_WIN32
fd = open (midi->device, O_RDONLY);
#else
fd = open (midi->device, O_RDONLY | O_NONBLOCK);
#endif
if (fd >= 0)
{
g_object_set (midi, "name", device, NULL);