_vcsock is being called in: libc/inet/resolv.c
but _vsock is only defined in __res_state when the macro
UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is defined
this causes resolv.c to fail to compile:
CC libc/inet/res_init.os
In file included from libc/inet/res_init.c:8:
libc/inet/resolv.c: In function '__res_init':
libc/inet/resolv.c:1210: error: 'struct __res_state' has no member
named '_vcsock'
The fix for the symptom:
--- libc/inet/resolv.c.orig 2008-12-30 02:06:54 -0600
+++ libc/inet/resolv.c 2008-12-30 02:07:10 -0600
@@ -1207,7 +1207,9 @@
rp->nsaddr.sin_port = htons(NAMESERVER_PORT);
rp->ndots = 1;
/** rp->pfcode = 0; **/
- rp->_vcsock = -1;
+#ifdef __UCLIBC_HAS_EXTRA_COMPAT_RES_STATE__
+ rp->_vcsock = -1;
+#endif
/** rp->_flags = 0; **/
/** rp->qhook = NULL; **/
/** rp->rhook = NULL; **/
--
Kevin Day
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc