Add support kFreeBSD
kFreeBSD use cuaX as uart device. This supports the kFreeBSD in Debian, and fix failure to build. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
This commit is contained in:
parent
70f6c24ebb
commit
fdcb2c3290
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@
|
||||||
|
|
||||||
# if defined(__APPLE__)
|
# if defined(__APPLE__)
|
||||||
const char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", "tty.usbserial-", NULL };
|
const char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", "tty.usbserial-", NULL };
|
||||||
# elif defined (__FreeBSD__) || defined (__OpenBSD__)
|
# elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__FreeBSD_kernel__)
|
||||||
const char *serial_ports_device_radix[] = { "cuaU", "cuau", NULL };
|
const char *serial_ports_device_radix[] = { "cuaU", "cuau", NULL };
|
||||||
# elif defined (__linux__)
|
# elif defined (__linux__)
|
||||||
const char *serial_ports_device_radix[] = { "ttyUSB", "ttyS", "ttyACM", "ttyAMA", "ttyO", NULL };
|
const char *serial_ports_device_radix[] = { "ttyUSB", "ttyS", "ttyACM", "ttyAMA", "ttyO", NULL };
|
||||||
|
|
Loading…
Add table
Reference in a new issue