fix for recv() when neither ppoll nor pselect are available

This commit is contained in:
john30
2014-12-27 13:34:38 +01:00
parent 6ac101f79b
commit ff7caba5ca
+2
View File
@@ -100,6 +100,8 @@ result_t Device::recv(const long timeout, unsigned char& value)
FD_SET(m_fd, &readfds);
ret = pselect(m_fd + 1, &readfds, NULL, NULL, &tdiff, NULL);
#else
ret = 1; // ignore timeout if neither ppoll nor pselect are available
#endif
#endif
if (ret == -1) return RESULT_ERR_DEVICE;