Skip to content

Commit ae86c6a

Browse files
committed
Stub for wrap syslog.h
Signed-off-by: tison <[email protected]>
1 parent 7e30152 commit ae86c6a

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ resource = []
6464
sched = ["process"]
6565
signal = ["process"]
6666
socket = ["memoffset"]
67+
syslog = []
6768
term = []
6869
time = []
6970
ucontext = ["signal"]

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,14 @@ feature! {
200200
pub mod spawn;
201201
}
202202

203+
#[cfg(any(
204+
target_os = "macos",
205+
))]
206+
feature! {
207+
#![feature = "syslog"]
208+
pub mod syslog;
209+
}
210+
203211
use std::ffi::{CStr, CString, OsStr};
204212
use std::mem::MaybeUninit;
205213
use std::os::unix::ffi::OsStrExt;

src/syslog.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)