From 8744ca11ae5e37168e43d528dfa0d84e91802503 Mon Sep 17 00:00:00 2001 From: Jan S Date: Thu, 22 Mar 2018 22:19:13 +0100 Subject: [PATCH] Add strtonum to OpenBSD --- src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs index 0761a188..c4a60800 100644 --- a/src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs @@ -52,6 +52,9 @@ extern { envp: *const *const ::c_char) -> ::c_int; pub fn pledge(promises: *const ::c_char, execpromises: *const ::c_char) -> ::c_int; + pub fn strtonum(nptr: *const ::c_char, minval: ::c_longlong, + maxval: ::c_longlong, + errstr: *mut *const ::c_char) -> ::c_longlong; } cfg_if! {