- Remove the unneeded patch
OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=206
This commit is contained in:
parent
02d728fa14
commit
fc220f59b5
@ -1,17 +0,0 @@
|
|||||||
Index: src/sort.c
|
|
||||||
===================================================================
|
|
||||||
--- src/sort.c.orig
|
|
||||||
+++ src/sort.c
|
|
||||||
@@ -5291,7 +5291,11 @@ main (int argc, char **argv)
|
|
||||||
{
|
|
||||||
if (!nthreads)
|
|
||||||
{
|
|
||||||
- unsigned long int np = num_processors (NPROC_CURRENT_OVERRIDABLE);
|
|
||||||
+ unsigned long int np;
|
|
||||||
+ if (getenv("OMP_NUM_THREADS"))
|
|
||||||
+ np = num_processors (NPROC_CURRENT_OVERRIDABLE);
|
|
||||||
+ else
|
|
||||||
+ np = 1;
|
|
||||||
nthreads = MIN (np, DEFAULT_MAX_THREADS);
|
|
||||||
}
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user