Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
x264
Manage
Activity
Members
Labels
Plan
Issues
26
Issue boards
Milestones
Wiki
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
x264
Commits
5585eafe
Commit
5585eafe
authored
3 years ago
by
Anton Mitrofanov
Browse files
Options
Downloads
Patches
Plain Diff
Fix build on OpenBSD and Android
parent
0bb85e8b
No related branches found
Branches containing commit
No related tags found
1 merge request
!97
Fix build on OpenBSD and Android
Pipeline
#187394
passed with stages
Stage:
Stage:
Stage:
in 6 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/cpu.c
+10
-5
10 additions, 5 deletions
common/cpu.c
with
10 additions
and
5 deletions
common/cpu.c
+
10
−
5
View file @
5585eafe
...
...
@@ -27,19 +27,24 @@
#include
"base.h"
#if HAVE_POSIXTHREAD && SYS_LINUX
#if SYS_CYGWIN || SYS_SunOS || SYS_OPENBSD
#include
<unistd.h>
#endif
#if SYS_LINUX
#ifdef __ANDROID__
#include
<unistd.h>
#else
#include
<sched.h>
#endif
#endif
#if SYS_BEOS
#include
<kernel/OS.h>
#endif
#if SYS_MACOSX || SYS_FREEBSD
#if SYS_MACOSX ||
SYS_OPENBSD ||
SYS_FREEBSD
#include
<sys/types.h>
#include
<sys/sysctl.h>
#endif
#if SYS_OPENBSD
#include
<sys/param.h>
#include
<sys/sysctl.h>
#include
<machine/cpu.h>
#endif
...
...
@@ -301,7 +306,7 @@ uint32_t x264_cpu_detect( void )
#elif HAVE_ALTIVEC
#if SYS_MACOSX || SYS_OPENBSD || SYS_FREEBSD
#include
<sys/sysctl.h>
uint32_t
x264_cpu_detect
(
void
)
{
/* Thank you VLC */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment