1 ser2net: Fix compilation failures due to missing TIOCSRS485 macro
4 https://sourceforge.net/p/ser2net/mailman/message/32905302/
6 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
8 From: Yegor Yefremov <yegorslists@googlemail.com>
10 include <asm-generic/ioctls.h> fixes compilations for systems,
11 where <asm-generic/ioctls.h> won't be included automatically.
13 Move special Linux includes to dataxfer.h.
15 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
19 2 files changed, 3 insertions(+), 4 deletions(-)
21 diff --git a/dataxfer.h b/dataxfer.h
22 index bd2665e..c3d7431 100644
29 -#include <linux/serial.h>
31 #include "controller.h"
33 #ifdef USE_UUCP_LOCKING
34 @@ -30,6 +28,9 @@ extern int uucp_locking_enabled;
38 +#include <linux/serial.h>
39 +#include <asm-generic/ioctls.h>
41 #define USE_RS485_FEATURE
43 /* Check, if the toolchain provides serial_rs485 structure and macros */
44 diff --git a/devcfg.c b/devcfg.c
45 index ab819a6..1f84714 100644
51 /* This code handles generating the configuration for the serial port. */
55 #include <sys/ioctl.h>
60 -#include <linux/serial.h>