From: Paul Davis Date: Mon, 18 Jan 2016 21:43:27 +0000 (-0500) Subject: windows, i love you, more X-Git-Tag: 4.7~311 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=62ff9d9276f7047ecbff824a3291281d35d655a9;p=ardour.git windows, i love you, more --- diff --git a/libs/midi++2/ipmidi_port.cc b/libs/midi++2/ipmidi_port.cc index 440374eade..4fb54a90bf 100644 --- a/libs/midi++2/ipmidi_port.cc +++ b/libs/midi++2/ipmidi_port.cc @@ -239,7 +239,7 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname) int size; #endif - if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (void *) &loop, &size)) { + if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (char *) &loop, &size)) { ::perror ("getsockopt(IP_MULTICAST_LOOP)"); } else { cout << "********* 1. multicast loopback: " << loop << " size was " << size << endl; @@ -247,12 +247,12 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname) // Turn off loopback... loop = 0; - if (::setsockopt(sockout, IPPROTO_IP, IP_MULTICAST_LOOP, (void *) &loop, sizeof (loop)) < 0) { + if (::setsockopt(sockout, IPPROTO_IP, IP_MULTICAST_LOOP, (char *) &loop, sizeof (loop)) < 0) { ::perror("setsockopt(IP_MULTICAST_LOOP)"); return false; } - if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (void *) &loop, &size)) { + if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (char *) &loop, &size)) { ::perror ("getsockopt(IP_MULTICAST_LOOP)"); } else { cout << "********* 2. multicast loopback: " << loop << " size was " << size << endl;