? packages/net/common/current/tests/makefile Index: packages/net/common/current//ChangeLog =================================================================== RCS file: /cvs/ecos/ecos-opt/net/net/common/current/ChangeLog,v retrieving revision 1.34 diff -c -r1.34 ChangeLog *** packages/net/common/current//ChangeLog 14 May 2003 07:02:06 -0000 1.34 --- packages/net/common/current//ChangeLog 19 May 2003 19:43:39 -0000 *************** *** 1,3 **** --- 1,10 ---- + 2003-05-19 Michael Checky + + * src/getaddrinfo.c: Changed '#ifdef CYGPKG_NS_DNS' to + '#ifdef CYGPKG_NS_DNS_BUILD', so it would compile if this CDL + option is not selected. Changed the call to 'numeric_node_addr' + so it uses the correct number of arguments. + 2003-05-14 Bob Holmberg * src/tftp_server.c (tftpd_read_file): Open the file for reading, Index: packages/net/common/current//src/getaddrinfo.c =================================================================== RCS file: /cvs/ecos/ecos-opt/net/net/common/current/src/getaddrinfo.c,v retrieving revision 1.5 diff -c -r1.5 getaddrinfo.c *** packages/net/common/current//src/getaddrinfo.c 12 May 2003 10:13:38 -0000 1.5 --- packages/net/common/current//src/getaddrinfo.c 19 May 2003 19:43:39 -0000 *************** *** 39,45 **** #include #include ! #ifdef CYGPKG_NS_DNS #include #include #endif --- 39,45 ---- #include #include ! #ifdef CYGPKG_NS_DNS_BUILD #include #include #endif *************** *** 219,225 **** with_node_addr(struct addrinfo *ai, const char *node, const struct addrinfo *hints, int port) { ! #ifdef CYGPKG_NS_DNS struct sockaddr addrs[CYGNUM_NS_DNS_GETADDRINFO_ADDRESSES]; int nresults; int i; --- 219,225 ---- with_node_addr(struct addrinfo *ai, const char *node, const struct addrinfo *hints, int port) { ! #ifdef CYGPKG_NS_DNS_BUILD struct sockaddr addrs[CYGNUM_NS_DNS_GETADDRINFO_ADDRESSES]; int nresults; int i; *************** *** 262,268 **** } return EAI_NONE; #else ! return (numeric_node_addr(ai, node, hints, hints->ai_family, port)); #endif } --- 262,268 ---- } return EAI_NONE; #else ! return (numeric_node_addr(ai, node, hints, port)); #endif } *************** *** 479,485 **** if (host != (char *)NULL) { if ( !numeric) { error = EAI_NONAME; ! #ifdef CYGPKG_NS_DNS error = -cyg_dns_getnameinfo(sa, host,hostlen); #endif if ((error == EAI_NONAME) && (flags & NI_NAMEREQD)) { --- 479,485 ---- if (host != (char *)NULL) { if ( !numeric) { error = EAI_NONAME; ! #ifdef CYGPKG_NS_DNS_BUILD error = -cyg_dns_getnameinfo(sa, host,hostlen); #endif if ((error == EAI_NONAME) && (flags & NI_NAMEREQD)) {