0001-Fix-redirection-of-errno-header.patch 996 B

1234567891011121314151617181920212223242526272829303132
  1. From 9ff62052a9490c96366d97096a039dca30702b2d Mon Sep 17 00:00:00 2001
  2. From: Sergio Prado <sergio.prado@e-labworks.com>
  3. Date: Fri, 3 Jul 2020 21:09:20 -0300
  4. Subject: [PATCH] Fix redirection of errno header
  5. The POSIX correct header to include is <errno.h>.
  6. The glibc silently redirects incorrect includes, but musl libc prints
  7. a warning:
  8. #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
  9. Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
  10. ---
  11. c-utility/pal/linux/socket_async_os.h | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/c-utility/pal/linux/socket_async_os.h b/c-utility/pal/linux/socket_async_os.h
  14. index bd59e487c099..1797089851e3 100644
  15. --- a/c-utility/pal/linux/socket_async_os.h
  16. +++ b/c-utility/pal/linux/socket_async_os.h
  17. @@ -10,7 +10,7 @@
  18. #include <sys/select.h>
  19. #include <netinet/in.h>
  20. #include <netinet/tcp.h>
  21. -#include <sys/errno.h>
  22. +#include <errno.h>
  23. #include <fcntl.h>
  24. #include <unistd.h>
  25. #include <netdb.h>
  26. --
  27. 2.17.1