diff options
author | Greg Hudson <ghudson@mit.edu> | 1998-09-21 21:56:04 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1998-09-21 21:56:04 +0000 |
commit | 97bc85824ab15e00249dcebc295dde29523d9165 (patch) | |
tree | b0ac3e3281e8b92e0486bc0f3f9db69787913d5a | |
parent | baee3bd5f3b357e10fb27f6ae4021dbcb68fff40 (diff) |
BSD/OS doesn't define INADDR_LOOPBACK. What a loser operating system.
Add a fallback.
-rw-r--r-- | lib/ZhmStat.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <internal.h> #include <sys/socket.h> +#ifndef INADDR_LOOPBACK +#define INADDR_LOOPBACK 0x7f000001 +#endif + Code_t ZhmStat(hostaddr, notice) struct in_addr *hostaddr; ZNotice_t *notice; |