configure.ac: AC_CHECK_HEADERS added.
This commit is contained in:
@@ -3,6 +3,16 @@ AC_INIT([ebusd], [0.5.0], [ebusd@liwest.at], [ebusd], [https://github.com/yuhu-/
|
|||||||
|
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS([arpa/inet.h \
|
||||||
|
dirent.h \
|
||||||
|
fcntl.h \
|
||||||
|
netdb.h \
|
||||||
|
netinet/in.h \
|
||||||
|
pthread.h \
|
||||||
|
sys/ioctl.h \
|
||||||
|
sys/socket.h \
|
||||||
|
termios.h])
|
||||||
|
|
||||||
AC_CONFIG_AUX_DIR([build])
|
AC_CONFIG_AUX_DIR([build])
|
||||||
AC_CONFIG_SRCDIR([src/ebusd/ebusd.cpp])
|
AC_CONFIG_SRCDIR([src/ebusd/ebusd.cpp])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ void DeviceSerial::openDevice(const std::string deviceName, const bool noDeviceC
|
|||||||
newSettings.c_cc[VTIME] = 0;
|
newSettings.c_cc[VTIME] = 0;
|
||||||
|
|
||||||
// empty device buffer
|
// empty device buffer
|
||||||
tcflush(m_fd, TCIOFLUSH);
|
tcflush(m_fd, TCIFLUSH);
|
||||||
|
|
||||||
// activate new settings of serial device
|
// activate new settings of serial device
|
||||||
tcsetattr(m_fd, TCSANOW, &newSettings);
|
tcsetattr(m_fd, TCSANOW, &newSettings);
|
||||||
|
|||||||
Reference in New Issue
Block a user