0001-cimxml-Include-sys-select.h-for-fd_set.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 9981542cb443cdaf9134500b78fe7eda9f99861f Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Thu, 7 Sep 2017 21:43:26 -0700
  4. Subject: [PATCH] cimxml: Include sys/select.h for fd_set
  5. define __SOCKADDR_ARG on linux when libc != glibc
  6. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  7. ---
  8. Upstream-Status: Pending
  9. backend/cimxml/indicationlistener.c | 3 ++-
  10. 1 file changed, 2 insertions(+), 1 deletion(-)
  11. diff --git a/backend/cimxml/indicationlistener.c b/backend/cimxml/indicationlistener.c
  12. index 0d7d9fe..37c45ae 100755
  13. --- a/backend/cimxml/indicationlistener.c
  14. +++ b/backend/cimxml/indicationlistener.c
  15. @@ -25,6 +25,7 @@
  16. #include <pthread.h>
  17. #include <sys/socket.h>
  18. +#include <sys/select.h>
  19. #include <netinet/in.h>
  20. #include <fcntl.h>
  21. #include <errno.h>
  22. @@ -36,7 +37,7 @@ static int do_listen=1;
  23. #define hdrBufsize 5000
  24. #define hdrLimmit 5000
  25. -#ifdef __APPLE__
  26. +#if defined(__APPLE__) || (defined(__linux__) && !defined(__GLIBC__))
  27. # define __SOCKADDR_ARG struct sockaddr *__restrict
  28. #endif
  29. --
  30. 2.14.1