Subject: [Coder-Com] Small Fix for 2.10.04 Date: Mon, 21 Sep 1998 19:58:03 +0000 From: Jesus Cea Avion Organization: Argo Redes y Servicios Telematicos, S.A. To: coder-com , Lista IRCops ESNET , hacking@argo.es An IRCu server with all the last patches, refuses to compile: * SINTOMS: gcc -g -O2 -pipe -I../include -c s_bsd.c -o s_bsd.o s_bsd.c: In function `check_server': s_bsd.c:918: `INADDR_NONE' undeclared (first use this function) s_bsd.c:918: (Each undeclared identifier is reported only once s_bsd.c:918: for each function it appears in.) s_bsd.c: In function `connect_server': s_bsd.c:2044: `INADDR_NONE' undeclared (first use this function) s_bsd.c: In function `connect_inet': s_bsd.c:2261: `INADDR_NONE' undeclared (first use this function) make[1]: *** [s_bsd.o] Error 1 make[1]: Leaving directory `/opt/src/ircu2.10.04/ircd' * CAUSE* "INADDR_NONE" is introduced in patch "resolv7-9", into file "res.c". Nevertheless, patch "egcs1-2" uses the definition also in other files, like "s_bsd.c", "s_conf.c" and "s_ping.c". * SOLUTION: Apply the following patch: *** ../ircu2.10.04/include/res.h Mon Sep 21 19:34:12 1998 --- ../ircu2.10.04+/include/res.h Mon Sep 21 19:34:44 1998 *************** *** 14,19 **** --- 14,23 ---- #endif #include "list.h" + #ifndef INADDR_NONE + #define INADDR_NONE 0xffffffff + #endif + /*============================================================================= * Proto types */ -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea@argo.es http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ _/_/_/_/_/ PGP Key Available at KeyServ _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibnitz