Skip to content

Commit 248e718

Browse files
committed
Also search for dylibs in case we are on Darwin
1 parent fced94e commit 248e718

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/xcursor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::xlib::{Cursor, Display, XColor, XImage};
1111
// functions
1212
//
1313

14-
x11_link! { Xcursor, xcursor, ["libXcursor.so.1", "libXcursor.so"], 59,
14+
x11_link! { Xcursor, xcursor, ["libXcursor.so.1", "libXcursor.so", "libXcursor.dylib.1", "libXcursor.dylib"], 59,
1515
pub fn XcursorAnimateCreate (_1: *mut XcursorCursors) -> *mut XcursorAnimate,
1616
pub fn XcursorAnimateDestroy (_1: *mut XcursorAnimate) -> (),
1717
pub fn XcursorAnimateNext (_1: *mut XcursorAnimate) -> c_ulong,

src/xlib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub mod xkb {}
2222
// functions
2323
//
2424

25-
x11_link! { Xlib, x11, ["libX11.so.6", "libX11.so"], 767,
25+
x11_link! { Xlib, x11, ["libX11.so.6", "libX11.so", "libX11.6.dylib", "libX11.dylib"], 767,
2626
pub fn XActivateScreenSaver (_1: *mut Display) -> c_int,
2727
pub fn XAddConnectionWatch (_3: *mut Display, _2: Option<unsafe extern "C" fn (*mut Display, *mut c_char, c_int, c_int, *mut *mut c_char)>, _1: *mut c_char) -> c_int,
2828
pub fn XAddExtension (_1: *mut Display) -> *mut XExtCodes,

src/xlib_xcb.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use super::xlib::Display;
22
use std::os::raw::c_void;
3-
4-
x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 2,
3+
x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so", "libX11-xcb.1.dylib", "libX11-xcb.dylib"], 2,
54
pub fn XGetXCBConnection(_1: *mut Display) -> *mut xcb_connection_t,
65
pub fn XSetEventQueueOwner(_1: *mut Display, _2: XEventQueueOwner) -> (),
76
variadic:

src/xrandr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use super::xrender::{XFixed, XTransform};
1111
// functions
1212
//
1313

14-
x11_link! { Xrandr, xrandr, ["libXrandr.so.2", "libXrandr.so"], 70,
14+
x11_link! { Xrandr, xrandr, ["libXrandr.so.2", "libXrandr.so", "libXrandr.2.dylib", "libXrandr.dylib"], 70,
1515
pub fn XRRAddOutputMode (dpy: *mut Display, output: RROutput, mode: RRMode) -> (),
1616
pub fn XRRAllocGamma (size: c_int) -> *mut XRRCrtcGamma,
1717
pub fn XRRAllocModeInfo (name: *const c_char, nameLength: c_int) -> *mut XRRModeInfo,

0 commit comments

Comments
 (0)