Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
466b6403
Commit
466b6403
authored
Sep 17, 2010
by
Brad Smith
Committed by
Alexandre Julliard
Sep 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntll: Fix the detection of the number of CPUs for OpenBSD.
parent
ab521860
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
nt.c
dlls/ntdll/nt.c
+4
-3
No files found.
dlls/ntdll/nt.c
View file @
466b6403
...
...
@@ -1191,15 +1191,16 @@ void fill_cpu_info(void)
}
#elif defined (__OpenBSD__)
{
int
mib
[
2
],
num
;
int
mib
[
2
],
num
,
ret
;
size_t
len
;
mib
[
0
]
=
CTL_HW
;
mib
[
1
]
=
HW_NCPU
;
len
=
sizeof
(
num
);
num
=
sysctl
(
mib
,
2
,
&
num
,
&
len
,
NULL
,
0
);
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
=
num
;
ret
=
sysctl
(
mib
,
2
,
&
num
,
&
len
,
NULL
,
0
);
if
(
!
ret
)
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
=
num
;
}
#elif defined (__APPLE__)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment