Module: wine Branch: master Commit: f7161ebe899c5f10098f87ce3c6be5219edbd78d URL: http://source.winehq.org/git/wine.git/?a=commit;h=f7161ebe899c5f10098f87ce3c...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Jul 29 21:08:02 2013 +0200
ntdll: Don't use TIOCGICOUNT if we don't have linux/serial.h to define the necessary struct.
---
dlls/ntdll/serial.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/serial.c b/dlls/ntdll/serial.c index 3763959..f4ab212 100644 --- a/dlls/ntdll/serial.c +++ b/dlls/ntdll/serial.c @@ -804,7 +804,7 @@ typedef struct async_commio */ 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; if (!ioctl(fd, TIOCGICOUNT, &einfo)) {