Skip to content

Commit 7014ca1

Browse files
committed
fix: Linux build by importing CStr
1 parent 1cadebe commit 7014ca1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_syslog.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ fn test_syslog_hello_world() {
1717
#[test]
1818
#[cfg(target_os = "linux")]
1919
fn test_openlog_with_ident() {
20+
use std::ffi::CStr;
21+
2022
const IDENT: &CStr = unsafe {
2123
CStr::from_bytes_with_nul_unchecked(b"test_openlog_with_ident\0")
2224
};

0 commit comments

Comments
 (0)