blob: 87c8db6e1496fa2c4cb3daccac8876b00d2a0de7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- ui/base/x/x11_cursor_loader.cc.orig 2022-05-19 14:06:27 UTC
+++ ui/base/x/x11_cursor_loader.cc
@@ -136,7 +136,11 @@ std::string CursorPathFromLibXcursor() {
void operator()(void* ptr) const { dlclose(ptr); }
};
+#if defined(OS_BSD)
+ std::unique_ptr<void, DlCloser> lib(dlopen("libXcursor.so", RTLD_LAZY));
+#else
std::unique_ptr<void, DlCloser> lib(dlopen("libXcursor.so.1", RTLD_LAZY));
+#endif
if (!lib)
return "";
|