On Sun, 09 May 2021 07:31:39 +0000 octeep <oct...@protonmail.com> wrote:
> On Sun, May 09, 2021 at 02:04:47PM +0800, Theo Buehler wrote: > > > > +@@ -710,6 +710,8 @@ static GLFWbool initExtensions(void) > > > > + > > > > + #if defined(__CYGWIN__) > > > > + _glfw.x11.xcursor.handle = _glfw_dlopen("libXcursor-1.so"); > > > > ++#elif defined(__OpenBSD__) > > > > ++ _glfw.x11.xcursor.handle = _glfw_dlopen("libXcursor.so.5.0"); > > > > I think it would be better to avoid hardcoding the version. I would > > expect that this also works: > > > > _glfw.x11.xcursor.handle = _glfw_dlopen("libXcursor.so"); > > > > This way you don't need to bump whenver libXcursor is bumped. > > I don't think that will work since there is no libXcursor.so in > /usr/X11R6/lib? > I think this is using dlopen(3) internally, so it will find the proper/newest installed version.