From owner-freebsd-questions Wed Oct 30 21:48:10 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA29622 for questions-outgoing; Wed, 30 Oct 1996 21:48:10 -0800 (PST) Received: from utrhcs.cs.utwente.nl (utrhcs.cs.utwente.nl [130.89.10.247]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id VAA29613 for ; Wed, 30 Oct 1996 21:48:06 -0800 (PST) Received: from myrtilos.cs.utwente.nl by utrhcs.cs.utwente.nl (SMI-8.6/csrelay-SVR4_1.3/RBCS) id GAA04321; Thu, 31 Oct 1996 06:47:57 +0100 Received: from atlas.cs.utwente.nl by myrtilos.cs.utwente.nl (SMI-8.6/csrelay-Sol1.4/RB) id GAA19599; Thu, 31 Oct 1996 06:47:55 +0100 Received: by atlas.cs.utwente.nl (SMI-8.6/SMI-SVR4) id GAA14158; Thu, 31 Oct 1996 06:47:54 +0100 Date: Thu, 31 Oct 1996 06:47:54 +0100 Message-Id: <199610310547.GAA14158@atlas.cs.utwente.nl> From: Juergen Schoenwaelder To: owensc@enc.edu CC: tkined@ibr.cs.tu-bs.de, freebsd-questions@freebsd.org In-reply-to: <32780D17.41C67EA6@enc.edu> (message from Charles Owens on Wed, 30 Oct 1996 21:21:11 -0500) Subject: Re: problem compiling scotty 2.x for FreeBSD Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Charles Owens 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. *----------------------------------------------------------------