... CC gnutv gnutv.c: In function `main': gnutv.c:245: error: `AI_ADDRCONFIG' undeclared (first use in this function) gnutv.c:245: error: (Each undeclared identifier is reported only once gnutv.c:245: error: for each function it appears in.) make[2]: *** [gnutv] Error 1 Its completely safe to just remove the AI_ADDRCONFIG flag since you need to check if socket is successfully created anyway. Worst case effect is you get error message "Faild to create socket" (gnutv_data.c:126) rather than "Failed to resolve address" (gnutv.c:248).
Created attachment 137202 [details, diff] linuxtv-dvb-apps-ai_addrconfig.patch while I was there i also set .ai_family = AF_UNSPEC which is the recommended way according the getaddrinfo man page. (I suspect AF_UNSPEC == 0 so it doesn't really make any difference in real life).
This patch is logical. Reassigning to maintainers for cvs commit. ncopa can you also send this patch upstream and explain why they should not be using that define.. thanks in advance.
(In reply to comment #2) > This patch is logical. Reassigning to maintainers for cvs commit. ncopa can > you also send this patch upstream and explain why they should not be using > that define.. thanks in advance. > patch sent upstream.
Added a new snapshot (linuxtv-dvb-apps-1.1.1.20071201) that already contains this change.