kopia lustrzana https://github.com/Hamlib/Hamlib
Fix mingw compilation
rodzic
c9cc7f0792
commit
3ce55b2a94
|
@ -384,7 +384,12 @@ int network_open(hamlib_port_t *rp, int default_port)
|
||||||
// return # of bytes read
|
// return # of bytes read
|
||||||
int network_flush2(hamlib_port_t *rp, unsigned char *stopset, char *buf, int buf_len)
|
int network_flush2(hamlib_port_t *rp, unsigned char *stopset, char *buf, int buf_len)
|
||||||
{
|
{
|
||||||
unsigned int len = 0;
|
#ifdef __MINGW32__
|
||||||
|
ULONG len;
|
||||||
|
#else
|
||||||
|
uint len;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
int ret = ioctlsocket(rp->fd, FIONREAD, &len);
|
int ret = ioctlsocket(rp->fd, FIONREAD, &len);
|
||||||
#else
|
#else
|
||||||
|
|
Ładowanie…
Reference in New Issue