patch-server_main_c 898 B

123456789101112131415161718192021222324
  1. --- gkrellm-2.3.5.orig/server/main.c 2010-10-02 18:13:29.000000000 +0200
  2. +++ gkrellm-2.3.5/server/main.c 2014-03-23 16:06:59.000000000 +0100
  3. @@ -39,21 +39,6 @@
  4. #include <syslog.h>
  5. #endif // !WIN32
  6. -// win32 defines addrinfo but only supports getaddrinfo call on winxp or newer
  7. -#if !defined(HAVE_GETADDRINFO) && !defined(WIN32)
  8. -struct addrinfo
  9. - {
  10. - int ai_flags; /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST */
  11. - int ai_family; /* PF_xxx */
  12. - int ai_socktype; /* SOCK_xxx */
  13. - int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
  14. - size_t ai_addrlen; /* length of ai_addr */
  15. - char *ai_canonname; /* canonical name for hostname */
  16. - struct sockaddr *ai_addr; /* binary address */
  17. - struct addrinfo *ai_next; /* next structure in linked list */
  18. - };
  19. -#endif // !HAVE_GETADDRINFO
  20. -
  21. #if !defined(IPV6_V6ONLY) && defined(IPV6_BINDV6ONLY)
  22. #define IPV6_V6ONLY IPV6_BINDV6ONLY
  23. #endif