Re: problem compiling scotty 2.x for FreeBSD

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Thu, 31 Oct 1996 06:47:54 +0100

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.
*----------------------------------------------------------------