Commit e548d408 authored by Tijl Coosemans's avatar Tijl Coosemans Committed by Alexandre Julliard

ntdll: Add FreeBSD default serial port device.

parent 48e1faff
......@@ -175,6 +175,13 @@ static char *get_default_com_device( int num )
strcpy( ret, "/dev/ttyS0" );
ret[strlen(ret) - 1] = '0' + num - 1;
}
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
ret = RtlAllocateHeap( GetProcessHeap(), 0, sizeof("/dev/cuad0") );
if (ret)
{
strcpy( ret, "/dev/cuad0" );
ret[strlen(ret) - 1] = '0' + num - 1;
}
#else
FIXME( "no known default for device com%d\n", num );
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment