Commit 9f11a2d32293eea034e4de4579747f6523e4f43f
1 parent
8f51424e
Use termios.h instead termio.h (like on OSX)
Showing
3 changed files
with
3 additions
and
3 deletions
configure.ac
| @@ -12,7 +12,7 @@ AC_PROG_LIBTOOL | @@ -12,7 +12,7 @@ AC_PROG_LIBTOOL | ||
| 12 | 12 | ||
| 13 | # Checks for header files. | 13 | # Checks for header files. |
| 14 | AC_HEADER_STDC | 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 | # Checks for typedefs, structures, and compiler characteristics. | 17 | # Checks for typedefs, structures, and compiler characteristics. |
| 18 | AC_C_CONST | 18 | AC_C_CONST |
modbus/modbus.c
| @@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
| 33 | #include <stdio.h> | 33 | #include <stdio.h> |
| 34 | #include <string.h> | 34 | #include <string.h> |
| 35 | #include <stdlib.h> | 35 | #include <stdlib.h> |
| 36 | -#include <termio.h> | 36 | +#include <termios.h> |
| 37 | #include <sys/time.h> | 37 | #include <sys/time.h> |
| 38 | #include <unistd.h> | 38 | #include <unistd.h> |
| 39 | #include <errno.h> | 39 | #include <errno.h> |
wscript
| @@ -18,7 +18,7 @@ def configure(conf): | @@ -18,7 +18,7 @@ def configure(conf): | ||
| 18 | 18 | ||
| 19 | headers = 'arpa/inet.h fcntl.h netinet/in.h stdlib.h \ | 19 | headers = 'arpa/inet.h fcntl.h netinet/in.h stdlib.h \ |
| 20 | string.h sys/ioctl.h sys/socket.h sys/time.h \ | 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 | # check for headers and append found headers to headers_found for later use | 23 | # check for headers and append found headers to headers_found for later use |
| 24 | headers_found = [] | 24 | headers_found = [] |