0001-fd_set-requires-inclusion-of-sys-select.h.patch 942 B

12345678910111213141516171819202122232425262728293031
  1. From 2541ee3d709803096b17e45610ccc1404e2e5eee Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Sat, 8 Aug 2015 17:46:34 +0200
  4. Subject: [PATCH] fd_set requires inclusion of <sys/select.h>
  5. According to POSIX.1-2001, the definition fd_set and related macros is
  6. in <sys/select.h>, so it should be included in files using fd_set to
  7. make the code compatible with all standard C libraries.
  8. Submitted upstream: https://sourceforge.net/p/bcusdk/patches/3/
  9. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10. ---
  11. eibd/examples/common.h | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/eibd/examples/common.h b/eibd/examples/common.h
  14. index 51fc514..f038da1 100644
  15. --- a/eibd/examples/common.h
  16. +++ b/eibd/examples/common.h
  17. @@ -20,6 +20,7 @@
  18. #include <stdlib.h>
  19. #include <errno.h>
  20. #include <unistd.h>
  21. +#include <sys/select.h>
  22. #include "eibclient.h"
  23. /** unsigned char*/
  24. --
  25. 2.5.0