Commit 9f11a2d32293eea034e4de4579747f6523e4f43f

Authored by Stéphane Raimbault
1 parent 8f51424e

Use termios.h instead termio.h (like on OSX)

configure.ac
... ... @@ -12,7 +12,7 @@ AC_PROG_LIBTOOL
12 12  
13 13 # Checks for header files.
14 14 AC_HEADER_STDC
15   -AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h termio.h termios.h unistd.h])
  15 +AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h termios.h unistd.h])
16 16  
17 17 # Checks for typedefs, structures, and compiler characteristics.
18 18 AC_C_CONST
... ...
modbus/modbus.c
... ... @@ -33,7 +33,7 @@
33 33 #include <stdio.h>
34 34 #include <string.h>
35 35 #include <stdlib.h>
36   -#include <termio.h>
  36 +#include <termios.h>
37 37 #include <sys/time.h>
38 38 #include <unistd.h>
39 39 #include <errno.h>
... ...
... ... @@ -18,7 +18,7 @@ def configure(conf):
18 18  
19 19 headers = 'arpa/inet.h fcntl.h netinet/in.h stdlib.h \
20 20 string.h sys/ioctl.h sys/socket.h sys/time.h \
21   - termio.h termios.h unistd.h'
  21 + termios.h unistd.h'
22 22  
23 23 # check for headers and append found headers to headers_found for later use
24 24 headers_found = []
... ...