File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ feature! {
202202 pub mod spawn;
203203}
204204
205- #[ cfg( any ( linux , macos ) ) ]
205+ #[ cfg( unix ) ]
206206feature ! {
207207 #![ feature = "syslog" ]
208208 pub mod syslog;
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ mod test_sendfile;
4242) ) ]
4343mod test_spawn;
4444
45- #[ cfg( any ( linux , macos ) ) ]
45+ #[ cfg( unix ) ]
4646mod test_syslog;
4747
4848mod test_time;
You can’t perform that action at this time.
0 commit comments