From: Martin Pool Date: Fri, 31 Aug 2001 08:22:00 +0000 (+0000) Subject: Cope on machines without INADDR_LOOPBACK. X-Git-Tag: mbp_bk_export0~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d79c77caca3d14a4bb7f6eb3cf8b387776d1b30a;p=thirdparty%2Frsync.git Cope on machines without INADDR_LOOPBACK. --- diff --git a/rsync.h b/rsync.h index 6a663feb..da891c95 100644 --- a/rsync.h +++ b/rsync.h @@ -486,6 +486,13 @@ extern int errno; # define NONBLOCK_FLAG FNDELAY #endif +#ifndef INADDR_LOOPBACK +#define INADDR_LOOPBACK 0x7f000001 +#endif + +#ifndef INADDR_NONE +#define INADDR_NONE 0xffffffff +#endif #define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode) || S_ISSOCK(mode) || S_ISFIFO(mode))