Skip to content

Commit 75c5673

Browse files
bolphennot-fl3
authored andcommitted
native/linux_wayland: Use defines from libc
1 parent cc6f8d1 commit 75c5673

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/native/linux_wayland.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl WaylandPayload {
127127
// the message string is not accessible to us.
128128
match errno {
129129
0 => (),
130-
EPROTO => {
130+
libc::EPROTO => {
131131
let mut interface: *const wl_interface = std::ptr::null();
132132
let mut id = 0;
133133
let code = (self.client.wl_display_get_protocol_error)(

src/native/linux_wayland/libwayland_client.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,6 @@ pub const WL_SUBSURFACE_PLACE_BELOW_SINCE_VERSION: u32 = 1;
186186
pub const WL_SUBSURFACE_SET_SYNC_SINCE_VERSION: u32 = 1;
187187
pub const WL_SUBSURFACE_SET_DESYNC_SINCE_VERSION: u32 = 1;
188188

189-
pub const ENOMEM: c_int = 12;
190-
pub const EFAULT: c_int = 14;
191-
pub const EINVAL: c_int = 22;
192-
pub const EPROTO: c_int = 71;
193-
194189
pub type wl_shm_format = ::core::ffi::c_uint;
195190

196191
pub const wl_shm_format_WL_SHM_FORMAT_ARGB8888: wl_shm_format = 0;

0 commit comments

Comments
 (0)