blob: c9ac9d6e6c6a3d7aa21084f5047485e211f0b2d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- libs/indicom.c.orig 2021-06-26 09:52:40 UTC
+++ libs/indicom.c
@@ -32,6 +32,7 @@
#include "base64.h"
#include "config.h"
+#include <sys/param.h>
#if defined(HAVE_LIBNOVA)
#include <libnova/julian_day.h>
@@ -61,7 +62,9 @@
#endif
#if defined(BSD) && !defined(__GNU__)
+#if defined __APPLE__
#include <IOKit/serial/ioss.h>
+#endif
#include <sys/ioctl.h>
#endif
@@ -763,7 +766,7 @@ int tty_connect(const char *device, int bit_rate, int
case 57600: bps = B57600; break;
case 115200: bps = B115200; break;
case 230400: bps = B230400; break;
-#ifndef __APPLE__
+#if !defined __APPLE__ && !defined(__FreeBSD__)
case 460800: bps = B460800; break;
case 576000: bps = B576000; break;
case 921600: bps = B921600; break;
|