ntdll: fix compile on systems without termios.port.c_ispeed/termios.port.c_ospeed structs

Alexandre Julliard julliard at winehq.org
Thu Oct 7 10:48:38 CDT 2010


Austin English <austinenglish at gmail.com> writes:

> @@ -498,7 +498,7 @@ static NTSTATUS set_baud_rate(int fd, const SERIAL_BAUD_RATE* sbr)
>          return STATUS_NOT_SUPPORTED;
>  #endif    /* Don't have linux/serial.h or lack TIOCSSERIAL */
>      }
> -#elif !defined(__EMX__)
> +#elif !defined(__EMX__) && defined (_HAVE_STRUCT_TERMIOS_C_ISPEED) && defined (_HAVE_STRUCT_TERMIOS_C_OSPEED) 
>      switch (sbr->BaudRate)
>      {
>      case 0:             port.c_ospeed = B0;     break;

You'd want to use the cflag method in this case. Which platform needs this?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list