From 9f0e24d765ca34f9a390352959193922059e59dc Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 12 May 1999 06:15:33 +0000 Subject: [PATCH] make it compile under sunos --- pppd/utils.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pppd/utils.c b/pppd/utils.c index 714a7c0..0b1292d 100644 --- a/pppd/utils.c +++ b/pppd/utils.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef lint -static char rcsid[] = "$Id: utils.c,v 1.3 1999/05/04 06:58:36 paulus Exp $"; +static char rcsid[] = "$Id: utils.c,v 1.4 1999/05/12 06:15:33 paulus Exp $"; #endif #include @@ -46,6 +46,10 @@ static char rcsid[] = "$Id: utils.c,v 1.3 1999/05/04 06:58:36 paulus Exp $"; #include "pppd.h" +#if defined(SUNOS4) +extern char *strerror(); +#endif + static void pr_log __P((void *, char *, ...)); static void logit __P((int, char *, va_list)); static void vslp_printer __P((void *, char *, ...)); @@ -701,7 +705,8 @@ static char lock_file[MAXPATHLEN]; * lock - create a lock file for the named device */ int -lock(char *dev) +lock(dev) + char *dev; { #ifdef LOCKLIB int result; @@ -818,7 +823,8 @@ lock(char *dev) * between when the parent died and the child rewrote the lockfile). */ int -relock(int pid) +relock(pid) + int pid; { #ifdef LOCKLIB /* XXX is there a way to do this? */ -- 2.39.2