diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 981a7dc..334671e 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -54,8 +54,15 @@ // MacOS // TODO: find UART connection string for PN53X device on Mac OS X #define SERIAL_STRING "" + #elif defined(__FreeBSD__) + // XXX: Not tested + #define SERIAL_STRING "/dev/cuau" #else - // *BSD, Linux and others POSIX systems + // Linux and maybe some operating systems + // FIXME: We'd rather have an #elif defined(__linux__) or something like + // that and an #else that triggers an error at compile time instead + // of "falling-back" on a value that is likely to not be suitable + // for most operating systems. #define SERIAL_STRING "/dev/ttyUSB" #endif #endif