mirror of https://github.com/GNOME/gimp.git
modules/controller_midi.c: #ifdef G_OS_WIN32 for a O_NONBLOCK
This commit is contained in:
parent
63c0ed2ce8
commit
d6b6ba7423
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue