Skip to content

Commit

Permalink
lisp/xwindow/xforeign.c.c : MacOS 13 reads libX11 from /usr/local/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 10, 2024
1 parent 05907c4 commit 806c649
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lisp/xwindow/xforeign.c.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ char *xentry;
#elif Darwin
eusinteger_t dlhandle;
dlhandle=(eusinteger_t)dlopen("/opt/X11/lib/libX11.dylib", RTLD_LAZY);
if( dlhandle==0 )
dlhandle=(eusinteger_t)dlopen("/usr/local/lib/libX11.dylib", RTLD_LAZY);
if( dlhandle==0 )
dlhandle=(eusinteger_t)dlopen("libX11.dylib", RTLD_LAZY);
entry=(eusinteger_t)dlsym(dlhandle, xentry);
Expand Down

0 comments on commit 806c649

Please sign in to comment.