You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
638 B

  1. --- a/ether/readpacket.c
  2. +++ b/ether/readpacket.c
  3. @@ -70,6 +70,10 @@
  4. #include <memory.h>
  5. #include <errno.h>
  6. +#if defined (__linux__)
  7. +#include <poll.h>
  8. +#endif
  9. +
  10. #include "../ether/channel.h"
  11. #include "../tools/memory.h"
  12. #include "../tools/error.h"
  13. @@ -95,8 +99,6 @@ ssize_t readpacket (struct channel const
  14. #elif defined (__linux__)
  15. -#include <sys/poll.h>
  16. -
  17. struct pollfd pollfd =
  18. {
  19. channel->fd,
  20. --- a/serial/serial.c
  21. +++ b/serial/serial.c
  22. @@ -69,6 +69,8 @@
  23. #if defined (WIN32)
  24. #include <Windows.h>
  25. +#else
  26. +#include <sys/select.h>
  27. #endif
  28. /*====================================================================*