mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Changes to get IPMIDIPort to compile(but not functional) on MinGW
This commit is contained in:
parent
8a9cdd04c5
commit
ab8918fa73
1 changed files with 8 additions and 0 deletions
|
|
@ -25,7 +25,11 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#if defined(WIN32)
|
||||||
|
#include <winsock2.h>
|
||||||
|
#else
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
static WSADATA g_wsaData;
|
static WSADATA g_wsaData;
|
||||||
|
|
@ -147,6 +151,7 @@ get_address (int sock, struct in_addr *inaddr, const string& ifname )
|
||||||
bool
|
bool
|
||||||
IPMIDIPort::open_sockets (int base_port, const string& ifname)
|
IPMIDIPort::open_sockets (int base_port, const string& ifname)
|
||||||
{
|
{
|
||||||
|
#if !defined(WIN32)
|
||||||
int protonum = 0;
|
int protonum = 0;
|
||||||
struct protoent *proto = ::getprotobyname("IP");
|
struct protoent *proto = ::getprotobyname("IP");
|
||||||
|
|
||||||
|
|
@ -243,6 +248,9 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname)
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif // !WIN32
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue