Skip to content

Commit 8744ca1

Browse files
author
Jan S
committed
Add strtonum to OpenBSD
1 parent 9c56176 commit 8744ca1

File tree

1 file changed

+3
-0
lines changed
  • src/unix/bsd/netbsdlike/openbsdlike/openbsd

1 file changed

+3
-0
lines changed

src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ extern {
5252
envp: *const *const ::c_char) -> ::c_int;
5353
pub fn pledge(promises: *const ::c_char,
5454
execpromises: *const ::c_char) -> ::c_int;
55+
pub fn strtonum(nptr: *const ::c_char, minval: ::c_longlong,
56+
maxval: ::c_longlong,
57+
errstr: *mut *const ::c_char) -> ::c_longlong;
5558
}
5659

5760
cfg_if! {

0 commit comments

Comments
 (0)