Date: Thu, 31 Oct 1996 06:47:54 +0100 From: Juergen Schoenwaelder <schoenw@cs.utwente.nl> To: owensc@enc.edu Cc: tkined@ibr.cs.tu-bs.de, freebsd-questions@freebsd.org Subject: Re: problem compiling scotty 2.x for FreeBSD Message-ID: <199610310547.GAA14158@atlas.cs.utwente.nl> In-Reply-To: <32780D17.41C67EA6@enc.edu> (message from Charles Owens on Wed, 30 Oct 1996 21:21:11 -0500)
next in thread | previous in thread | raw e-mail | index | archive | help
Charles Owens <owensc@enc.edu> said: Charles> I'm trying to build the scotty-2.1.5 package on a Charles> FreeBSD-2.1.5-RELEASE system and am stuck. The Charles> configure script seems to have run ok but a make bombs Charles> out with the following: Charles> ./../tnm/generic/tnmDns.c:160: `INADDR_LOOPBACK' Charles> undeclared (first use this function) Below is a patch which will fix this problem. Juergen *** unix/tnmUnixPort.h.orig Fri Sep 20 14:01:48 1996 --- unix/tnmUnixPort.h Thu Oct 31 06:41:37 1996 *************** *** 75,80 **** --- 75,91 ---- /* *---------------------------------------------------------------- + * FreeBSD defines INADDR_LOOPBACK only in rpc/types.h. That's + * strange. So I provide the fall-through definition below. + *---------------------------------------------------------------- + */ + + #ifndef INADDR_LOOPBACK + #define INADDR_LOOPBACK (u_long) 0x7F000001 + #endif + + /* + *---------------------------------------------------------------- * The following defines are needed to handle UDP sockets in a * platform independent way. *----------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610310547.GAA14158>