blob: 370d0b9b02dfe408296df1a5e11ac51f6b03e04b (
plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
ser2net: Fix compilation failures due to missing TIOCSRS485 macro
Patch sent upstream:
https://sourceforge.net/p/ser2net/mailman/message/32905302/
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
From: Yegor Yefremov <yegorslists@googlemail.com>
include <asm-generic/ioctls.h> fixes compilations for systems,
where <asm-generic/ioctls.h> won't be included automatically.
Move special Linux includes to dataxfer.h.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
dataxfer.h | 5 +++--
devcfg.c | 2 --
2 files changed, 3 insertions(+), 4 deletions(-)
--- a/dataxfer.h
+++ b/dataxfer.h
@@ -20,8 +20,6 @@
#ifndef DATAXFER
#define DATAXFER
-#include <linux/serial.h>
-
#include "controller.h"
#ifdef USE_UUCP_LOCKING
@@ -30,6 +28,9 @@ extern int uucp_locking_enabled;
#ifdef linux
+#include <linux/serial.h>
+#include <asm-generic/ioctls.h>
+
#define USE_RS485_FEATURE
/* Check, if the toolchain provides serial_rs485 structure and macros */
--- a/devcfg.c
+++ b/devcfg.c
@@ -18,7 +18,6 @@
*/
/* This code handles generating the configuration for the serial port. */
-
#include <unistd.h>
#include <termios.h>
#include <sys/ioctl.h>
@@ -31,7 +30,6 @@
#include <signal.h>
#include <errno.h>
#include <syslog.h>
-#include <linux/serial.h>
#include "ser2net.h"
#include "selector.h"
|