From 7cb4808861c696131ee0e34165c5b1450eb0e8f6 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Thu, 24 Jun 1999 00:18:41 +0000 Subject: [PATCH] disable the have_route_to stuff on non-solaris systems --- pppd/sys-svr4.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pppd/sys-svr4.c b/pppd/sys-svr4.c index abc7d96..64ad5f9 100644 --- a/pppd/sys-svr4.c +++ b/pppd/sys-svr4.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-svr4.c,v 1.30 1999/04/12 06:24:51 paulus Exp $"; +static char rcsid[] = "$Id: sys-svr4.c,v 1.31 1999/06/24 00:18:41 paulus Exp $"; #endif #include @@ -60,10 +60,12 @@ static char rcsid[] = "$Id: sys-svr4.c,v 1.30 1999/04/12 06:24:51 paulus Exp $"; #include #include #include +#ifdef SOL2 #include #include #include #include +#endif #include "pppd.h" @@ -1780,6 +1782,7 @@ int have_route_to(addr) u_int32_t addr; { +#ifdef SOL2 int fd, r, flags, i; struct { struct T_optmgmt_req req; @@ -1870,6 +1873,9 @@ have_route_to(addr) } close(fd); return 0; +#else + return -1; +#endif /* SOL2 */ } /* -- 2.39.2