diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-12 01:16:44 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-12 01:16:44 -0500 |
commit | c92af555b42be734f16e515dea5acc1ccd3d46f4 (patch) | |
tree | ada7db1a89bd2b047f38a36cccfe69ad22d27eab /libs/midi++2 | |
parent | e9e477ffe5d6db6795c535c854a9eac7c773ba71 (diff) |
further attempted changes for ipMIDI on windows
Diffstat (limited to 'libs/midi++2')
-rw-r--r-- | libs/midi++2/ipmidi_port.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/midi++2/ipmidi_port.cc b/libs/midi++2/ipmidi_port.cc index cf4e6b243d..7357f6743a 100644 --- a/libs/midi++2/ipmidi_port.cc +++ b/libs/midi++2/ipmidi_port.cc @@ -212,6 +212,7 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname) } // Will Hall, Oct 2007 +#ifndef PLATFORM_WINDOWS if (!ifname.empty()) { struct in_addr if_addr_out; if (!get_address(sockout, &if_addr_out, ifname)) { @@ -223,6 +224,7 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname) return false; } } +#endif ::memset(&addrout, 0, sizeof(struct sockaddr_in)); addrout.sin_family = AF_INET; @@ -249,14 +251,14 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname) } #else - // If iMode!=0, non-blocking mode is enabled. + // If imode !=0, non-blocking mode is enabled. u_long mode=1; - if (ioctlsocket(sockin,FIONBIO,&imode)) { + if (ioctlsocket(sockin,FIONBIO,&mode)) { error << "cannot set non-blocking mode for IP MIDI input socket (" << ::strerror (errno) << ')' << endmsg; return false; } imode = 1; - if (ioctlsocket(sockout,FIONBIO,&iMode)) { + if (ioctlsocket(sockout,FIONBIO,&mode)) { error << "cannot set non-blocking mode for IP MIDI output socket (" << ::strerror (errno) << ')' << endmsg; return false; } |