Skip to content

Commit 718519c

Browse files
committed
test on unix
Signed-off-by: tison <[email protected]>
1 parent 584e4df commit 718519c

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(any(linux, macos))]
205+
#[cfg(unix)]
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
@@ -92,20 +92,25 @@ libc_bitflags! {
9292
pub struct LogFlags: libc::c_int {
9393
/// Log the process id with each message: useful for identifying instantiations of
9494
/// daemons.
95+
#[cfg(not(target_os = "haiku"))]
9596
LOG_PID;
9697
/// If syslog() cannot pass the message to syslogd(8) it will attempt to write the
9798
/// message to the console ("/dev/console").
99+
#[cfg(not(target_os = "haiku"))]
98100
LOG_CONS;
99101
/// The converse of [`LOG_NDELAY`][LogFlags::LOG_NDELAY]; opening of the connection is
100102
/// delayed until `syslog` is called.
101103
///
102104
/// This is the default, and need not be specified.
105+
#[cfg(not(target_os = "haiku"))]
103106
LOG_ODELAY;
104107
/// Open the connection to syslogd(8) immediately. Normally the open is delayed until
105108
/// the first message is logged. Useful for programs that need to manage the order in
106109
/// which file descriptors are allocated.
110+
#[cfg(not(target_os = "haiku"))]
107111
LOG_NDELAY;
108112
/// Write the message to standard error output as well to the system log.
113+
#[cfg(not(target_os = "haiku"))]
109114
LOG_PERROR;
110115
}
111116
}

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(any(linux, macos))]
45+
#[cfg(unix)]
4646
mod test_syslog;
4747

4848
mod test_time;

0 commit comments

Comments
 (0)