From: Paul Mackerras Date: Mon, 12 Jun 1995 12:18:04 +0000 (+0000) Subject: Add prosthesis for SunOS, which doesn't have strtoul. X-Git-Tag: RELEASE_2_3_6~666 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=82fdf91a98fd14ea8bbfc03addd2282d0b24a09c Add prosthesis for SunOS, which doesn't have strtoul. --- diff --git a/pppd/sys-str.c b/pppd/sys-str.c index e583133..030ad58 100644 --- a/pppd/sys-str.c +++ b/pppd/sys-str.c @@ -19,7 +19,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-str.c,v 1.20 1995/05/01 00:26:22 paulus Exp $"; +static char rcsid[] = "$Id: sys-str.c,v 1.21 1995/06/12 12:18:04 paulus Exp $"; #endif /* @@ -1275,3 +1275,14 @@ unlock() lock_file = NULL; } } + +/* + * SunOS doesn't have strtoul :-( + */ +unsigned long +strtoul(str, ptr, base) + char *str, **ptr; + int base; +{ + return (unsigned long) strtol(str, ptr, base); +}