Skip to content

Commit 5f0e56f

Browse files
Fix opening the native library on Linux
1 parent ddf585a commit 5f0e56f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Unity/Assets/NativeScript/Bindings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static extern int dlclose(
332332
static IntPtr OpenLibrary(
333333
string path)
334334
{
335-
IntPtr handle = dlopen(path, 0);
335+
IntPtr handle = dlopen(path, 1); // 1 = lazy, 2 = now
336336
if (handle == IntPtr.Zero)
337337
{
338338
throw new Exception("Couldn't open native library: " + path);

0 commit comments

Comments
 (0)