File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/main/java/org/lmdbjava Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2121import java .io .IOException ;
2222import java .nio .file .Files ;
2323import java .nio .file .Paths ;
24+ import java .util .stream .Stream ;
2425
2526/**
2627 * Determines the name of the target LMDB native library.
@@ -171,10 +172,8 @@ private static String resolveToolchain(final String os) {
171172 }
172173
173174 private static boolean isMuslLibc () {
174- try {
175- return Files .lines (Paths .get ("/proc/self/maps" ))
176- .filter (line -> line .contains ("libc" ))
177- .anyMatch (line -> line .contains ("musl" ));
175+ try (Stream <String > lines = Files .lines (Paths .get ("/proc/self/maps" ))) {
176+ return lines .anyMatch (line -> line .contains ("/ld-musl" ));
178177 } catch (final IOException e ) {
179178 return false ;
180179 }
You can’t perform that action at this time.
0 commit comments