lirc-lib-curl_poll.h-Ensure-build-on-unconfiguredclients.patch 804 B

12345678910111213141516171819202122232425262728293031323334
  1. From 33c40d127877179e0cba2f6595816377bb6bcda1 Mon Sep 17 00:00:00 2001
  2. From: Alec Leamas <leamas.alec@gmail.com>
  3. Date: Tue, 25 Oct 2016 10:28:14 +0200
  4. Subject: [PATCH 05/10] lib: curl_poll.h: Ensure build on unconfiguredclients.
  5. ---
  6. lib/curl_poll.h | 4 +++-
  7. 1 file changed, 3 insertions(+), 1 deletion(-)
  8. diff --git a/lib/curl_poll.h b/lib/curl_poll.h
  9. index 6144c42..af25381 100644
  10. --- a/lib/curl_poll.h
  11. +++ b/lib/curl_poll.h
  12. @@ -21,7 +21,9 @@
  13. * KIND, either express or implied.
  14. *
  15. ***************************************************************************/
  16. +#ifdef HAVE_CONFIG_H
  17. #include "config.h"
  18. +#endif
  19. #ifdef __cplusplus
  20. extern "C" {
  21. @@ -29,7 +31,7 @@ extern "C" {
  22. #ifdef HAVE_SYS_POLL_H
  23. #include <sys/poll.h>
  24. -#elif defined(HAVE_POLL_H)
  25. +#else
  26. #include <poll.h>
  27. #endif
  28. --