ntdll: Don't use TIOCGICOUNT if we don't have linux/serial.h to define the necessary struct.
This commit is contained in:
parent
581cef082e
commit
f7161ebe89
|
@ -804,7 +804,7 @@ typedef struct async_commio
|
||||||
*/
|
*/
|
||||||
static NTSTATUS get_irq_info(int fd, serial_irq_info *irq_info)
|
static NTSTATUS get_irq_info(int fd, serial_irq_info *irq_info)
|
||||||
{
|
{
|
||||||
#ifdef TIOCGICOUNT
|
#if defined (HAVE_LINUX_SERIAL_H) && defined (TIOCGICOUNT)
|
||||||
struct serial_icounter_struct einfo;
|
struct serial_icounter_struct einfo;
|
||||||
if (!ioctl(fd, TIOCGICOUNT, &einfo))
|
if (!ioctl(fd, TIOCGICOUNT, &einfo))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue