kopia lustrzana https://github.com/Hamlib/Hamlib
Fix WIN32 build
rodzic
0b6d423633
commit
2f0b12fbb3
|
@ -433,6 +433,7 @@ int HAMLIB_API port_close(hamlib_port_t *p, rig_port_t port_type)
|
||||||
|
|
||||||
extern int is_uh_radio_fd(int fd);
|
extern int is_uh_radio_fd(int fd);
|
||||||
|
|
||||||
|
#ifdef ASYNC_BUG
|
||||||
static int port_read_sync_data_error_code(hamlib_port_t *p)
|
static int port_read_sync_data_error_code(hamlib_port_t *p)
|
||||||
{
|
{
|
||||||
ssize_t total_bytes_read = 0;
|
ssize_t total_bytes_read = 0;
|
||||||
|
@ -573,6 +574,7 @@ static ssize_t port_read_sync_data_pipe(hamlib_port_t *p, void *buf, size_t coun
|
||||||
{
|
{
|
||||||
return port_read_sync_data(p, buf, count);
|
return port_read_sync_data(p, buf, count);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* On MinGW32/MSVC/.. the appropriate accessor must be used
|
/* On MinGW32/MSVC/.. the appropriate accessor must be used
|
||||||
* depending on the port type, sigh.
|
* depending on the port type, sigh.
|
||||||
|
|
Ładowanie…
Reference in New Issue