--- src/libslic3r/GCodeSender.cpp.orig 2023-12-12 14:21:21 UTC +++ src/libslic3r/GCodeSender.cpp @@ -14,7 +14,7 @@ #include #include -#if defined(__APPLE__) || defined(__OpenBSD__) +#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) #include #endif #ifdef __APPLE__ @@ -152,7 +152,7 @@ GCodeSender::set_baud_rate(unsigned int baud_rate) if (ioctl(handle, TCSETS2, &ios)) printf("Error in TCSETS2: %s\n", strerror(errno)); -#elif __OpenBSD__ +#elif __OpenBSD__ || __FreeBSD__ struct termios ios; ::tcgetattr(handle, &ios); ::cfsetspeed(&ios, baud_rate);