mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
12 lines
445 B
Diff
12 lines
445 B
Diff
|
diff -ru a/src/main/native/unix_jni_darwin.cc b/src/main/native/unix_jni_darwin.cc
|
||
|
--- a/src/main/native/unix_jni_darwin.cc 1980-01-01 00:00:00.000000000 -0500
|
||
|
+++ b/src/main/native/unix_jni_darwin.cc 2021-11-27 20:35:29.000000000 -0500
|
||
|
@@ -270,6 +270,7 @@
|
||
|
}
|
||
|
|
||
|
int portable_suspend_count() {
|
||
|
+ if (getenv("NIX_BUILD_TOP")) return 0;
|
||
|
static dispatch_once_t once_token;
|
||
|
static SuspendState suspend_state;
|
||
|
dispatch_once(&once_token, ^{
|