diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-12 00:58:00 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-12 00:58:07 -0500 |
commit | 6f7112547658b01594d8cd81a0f52c4edc017e1d (patch) | |
tree | db404d48564eb628cdd865123d9e2bcc43662eca | |
parent | 0103de801afcbbf0b5ac58696bb0be45b3771745 (diff) |
try just removing all PLATFORM_WINDOWS conditionals in ipmidi code to see if it will compile
-rw-r--r-- | libs/midi++2/ipmidi_port.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libs/midi++2/ipmidi_port.cc b/libs/midi++2/ipmidi_port.cc index ace51eae7d..8e907471e0 100644 --- a/libs/midi++2/ipmidi_port.cc +++ b/libs/midi++2/ipmidi_port.cc @@ -36,7 +36,6 @@ #endif #if defined(PLATFORM_WINDOWS) -static WSADATA g_wsaData; typedef int socklen_t; #else #include <unistd.h> @@ -117,7 +116,6 @@ get_address (int sock, struct in_addr *inaddr, const string& ifname ) { // Get interface address from supplied name. -#if !defined(PLATFORM_WINDOWS) struct ifreq ifr; ::strncpy(ifr.ifr_name, ifname.c_str(), sizeof(ifr.ifr_name)); @@ -141,18 +139,11 @@ get_address (int sock, struct in_addr *inaddr, const string& ifname ) inaddr->s_addr = sa.sin_addr.s_addr; return true; - -#else - - return false; - -#endif // !PLATFORM_WINDOWS' } bool IPMIDIPort::open_sockets (int base_port, const string& ifname) { -#if !defined(PLATFORM_WINDOWS) int protonum = 0; struct protoent *proto = ::getprotobyname("IP"); @@ -249,9 +240,6 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname) } return true; -#else - return false; -#endif // !PLATFORM_WINDOWS' } int |