We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6844cfb commit f7db08bCopy full SHA for f7db08b
src/sys/socket/consts.rs
@@ -178,7 +178,10 @@ mod os {
178
pub const SO_REUSEPORT: c_int = libc::SO_REUSEPORT;
179
pub const SO_REUSESHAREUID: c_int = 0x1025;
180
pub const SO_SNDBUF: c_int = libc::SO_SNDBUF;
181
+ #[cfg(not(target_os = "openbsd"))]
182
pub const SO_TIMESTAMP: c_int = libc::SO_TIMESTAMP;
183
+ #[cfg(target_os = "openbsd")]
184
+ pub const SO_TIMESTAMP: c_int = 0x0800;
185
#[cfg(not(target_os = "netbsd"))]
186
pub const SO_TIMESTAMP_MONOTONIC: c_int = 0x0800;
187
pub const SO_TYPE: c_int = libc::SO_TYPE;
0 commit comments