From 97bc85824ab15e00249dcebc295dde29523d9165 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 21 Sep 1998 21:56:04 +0000 Subject: BSD/OS doesn't define INADDR_LOOPBACK. What a loser operating system. Add a fallback. --- lib/ZhmStat.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/ZhmStat.c') diff --git a/lib/ZhmStat.c b/lib/ZhmStat.c index 08d5193..08375e9 100644 --- a/lib/ZhmStat.c +++ b/lib/ZhmStat.c @@ -14,6 +14,10 @@ #include #include +#ifndef INADDR_LOOPBACK +#define INADDR_LOOPBACK 0x7f000001 +#endif + Code_t ZhmStat(hostaddr, notice) struct in_addr *hostaddr; ZNotice_t *notice; -- cgit v1.2.3