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

Austin English austinenglish at gmail.com
Thu Oct 7 14:03:55 CDT 2010


On Thu, Oct 7, 2010 at 3:48 PM, Alexandre Julliard <julliard at winehq.org> wrote:
> 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?

Hm, I'll have to look into that.

It's for GNU Hurd, compile is broken without it. I've got a few other
patches for it as well, that need cleaning first.

-- 
-Austin



More information about the wine-devel mailing list