blob: 3af1ce8610205625806fca9fd177e14d7f1b5ddc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/libslic3r/GCodeSender.cpp.orig 2024-12-20 11:54:34 UTC
+++ src/libslic3r/GCodeSender.cpp
@@ -14,7 +14,7 @@
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/lexical_cast.hpp>
-#if defined(__APPLE__) || defined(__OpenBSD__)
+#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
#include <termios.h>
#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);
|