Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb1b91b

Browse files
committed
Merge branch 'master' of github.com-at055612:lmdbjava/lmdbjava
2 parents1800dd6 +3136919 commitdb1b91b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎src/main/java/org/lmdbjava/TargetName.java‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
importjava.io.IOException;
2222
importjava.nio.file.Files;
2323
importjava.nio.file.Paths;
24+
importjava.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
privatestaticbooleanisMuslLibc() {
174-
try {
175-
returnFiles.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+
returnlines.anyMatch(line ->line.contains("/ld-musl"));
178177
}catch (finalIOExceptione) {
179178
returnfalse;
180179
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp