projects
/
ppp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e9e64
)
Add prosthesis for SunOS, which doesn't have strtoul.
author
Paul Mackerras
<paulus@samba.org>
Mon, 12 Jun 1995 12:18:04 +0000
(12:18 +0000)
committer
Paul Mackerras
<paulus@samba.org>
Mon, 12 Jun 1995 12:18:04 +0000
(12:18 +0000)
pppd/sys-str.c
patch
|
blob
|
history
diff --git
a/pppd/sys-str.c
b/pppd/sys-str.c
index e5831330cac83bc9922990ddd2aa188be84d4d95..030ad58c8eb209fd2bd643c3deeffdfe60a62266 100644
(file)
--- 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.2
0 1995/05/01 00:26:22
paulus Exp $";
+static char rcsid[] = "$Id: sys-str.c,v 1.2
1 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);
+}