From fdcb2c3290dc538b83cedf5c7f9550c6f720eef6 Mon Sep 17 00:00:00 2001 From: Nobuhiro Iwamatsu Date: Tue, 10 Sep 2013 06:22:40 +0900 Subject: [PATCH] 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 --- libnfc/buses/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/buses/uart.c b/libnfc/buses/uart.c index 2806553..3dd099a 100644 --- a/libnfc/buses/uart.c +++ b/libnfc/buses/uart.c @@ -59,7 +59,7 @@ # if defined(__APPLE__) 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 }; # elif defined (__linux__) const char *serial_ports_device_radix[] = { "ttyUSB", "ttyS", "ttyACM", "ttyAMA", "ttyO", NULL };