Alexandre Julliard : ntdll: Don't use TIOCGICOUNT if we don't have linux/ serial.h to define the necessary struct.

Alexandre Julliard julliard at winehq.org
Tue Jul 30 14:14:21 CDT 2013


Module: wine
Branch: master
Commit: f7161ebe899c5f10098f87ce3c6be5219edbd78d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f7161ebe899c5f10098f87ce3c6be5219edbd78d

Author: Alexandre Julliard <julliard at 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))
     {




More information about the wine-cvs mailing list