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.

28 lines
995 B

  1. From eab45f0959ccb1deb662c6f8c036651088e2e8d6 Mon Sep 17 00:00:00 2001
  2. From: Stijn Tintel <stijn@linux-ipv6.be>
  3. Date: Fri, 17 Feb 2017 05:42:25 +0100
  4. Subject: [PATCH] unix: fix compilation against musl libc (#1127)
  5. POSIX.1-2001 requires sys/select.h for select() and friends.
  6. Compile-tested on glibc and musl, runtime tested on musl.
  7. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
  8. ---
  9. cpp/src/platform/unix/SerialControllerImpl.cpp | 1 +
  10. 1 file changed, 1 insertion(+)
  11. diff --git a/cpp/src/platform/unix/SerialControllerImpl.cpp b/cpp/src/platform/unix/SerialControllerImpl.cpp
  12. index d95f848..b52b74f 100644
  13. --- a/cpp/src/platform/unix/SerialControllerImpl.cpp
  14. +++ b/cpp/src/platform/unix/SerialControllerImpl.cpp
  15. @@ -25,6 +25,7 @@
  16. // along with OpenZWave. If not, see <http://www.gnu.org/licenses/>.
  17. //
  18. //-----------------------------------------------------------------------------
  19. +#include <sys/select.h>
  20. #include <unistd.h>
  21. #include <pthread.h>
  22. #include "Defs.h"
  23. --
  24. 2.10.2