diff --git a/configure.ac b/configure.ac index c9a30b66..a7faba9b 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,16 @@ AC_INIT([ebusd], [0.5.0], [ebusd@liwest.at], [ebusd], [https://github.com/yuhu-/ 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_SRCDIR([src/ebusd/ebusd.cpp]) AC_CONFIG_HEADERS([config.h]) diff --git a/src/lib/ebus/port.cpp b/src/lib/ebus/port.cpp index c815182b..4cbbb552 100644 --- a/src/lib/ebus/port.cpp +++ b/src/lib/ebus/port.cpp @@ -141,7 +141,7 @@ void DeviceSerial::openDevice(const std::string deviceName, const bool noDeviceC newSettings.c_cc[VTIME] = 0; // empty device buffer - tcflush(m_fd, TCIOFLUSH); + tcflush(m_fd, TCIFLUSH); // activate new settings of serial device tcsetattr(m_fd, TCSANOW, &newSettings);