Skip to content

Commit 584e4df

Browse files
committed
test on linux
Signed-off-by: tison <[email protected]>
1 parent 0c61a95 commit 584e4df

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ feature! {
202202
pub mod spawn;
203203
}
204204

205-
#[cfg(target_os = "macos")]
205+
#[cfg(any(linux, macos))]
206206
feature! {
207207
#![feature = "syslog"]
208208
pub mod syslog;

src/syslog.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ libc_bitflags! {
9696
/// If syslog() cannot pass the message to syslogd(8) it will attempt to write the
9797
/// message to the console ("/dev/console").
9898
LOG_CONS;
99+
/// The converse of [`LOG_NDELAY`][LogFlags::LOG_NDELAY]; opening of the connection is
100+
/// delayed until `syslog` is called.
101+
///
102+
/// This is the default, and need not be specified.
103+
LOG_ODELAY;
99104
/// Open the connection to syslogd(8) immediately. Normally the open is delayed until
100105
/// the first message is logged. Useful for programs that need to manage the order in
101106
/// which file descriptors are allocated.

test/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mod test_sendfile;
4242
))]
4343
mod test_spawn;
4444

45-
#[cfg(target_os = "macos")]
45+
#[cfg(any(linux, macos))]
4646
mod test_syslog;
4747

4848
mod test_time;

0 commit comments

Comments
 (0)