Browse Source

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

Stéphane Raimbault 17 years ago
parent
commit
9f11a2d322
3 changed files with 3 additions and 3 deletions
  1. 1 1
      configure.ac
  2. 1 1
      modbus/modbus.c
  3. 1 1
      wscript

+ 1 - 1
configure.ac

@@ -12,7 +12,7 @@ AC_PROG_LIBTOOL
 
 # Checks for header files.
 AC_HEADER_STDC
-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])
+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])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST

+ 1 - 1
modbus/modbus.c

@@ -33,7 +33,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <termio.h>
+#include <termios.h>
 #include <sys/time.h>
 #include <unistd.h>
 #include <errno.h>

+ 1 - 1
wscript

@@ -18,7 +18,7 @@ def configure(conf):
 
      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'
+                termios.h unistd.h'
 
      # check for headers and append found headers to headers_found for later use
      headers_found = []