Skip to content

Commit

Permalink
fix: Linux build by importing CStr
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Nov 17, 2024
1 parent 1cadebe commit 7014ca1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_syslog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ fn test_syslog_hello_world() {
#[test]
#[cfg(target_os = "linux")]
fn test_openlog_with_ident() {
use std::ffi::CStr;

const IDENT: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"test_openlog_with_ident\0")
};
Expand Down

0 comments on commit 7014ca1

Please sign in to comment.