Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
47cc1a2b
Commit
47cc1a2b
authored
May 31, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/ppc/cpu: Check if unistd.h is available before including it
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ff199543
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
cpu.c
libavutil/ppc/cpu.c
+4
-1
No files found.
libavutil/ppc/cpu.c
View file @
47cc1a2b
...
@@ -16,13 +16,17 @@
...
@@ -16,13 +16,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
#include "config.h"
#ifdef __APPLE__
#ifdef __APPLE__
#include <sys/sysctl.h>
#include <sys/sysctl.h>
#elif defined(__linux__)
#elif defined(__linux__)
#include <asm/cputable.h>
#include <asm/cputable.h>
#include <linux/auxvec.h>
#include <linux/auxvec.h>
#include <fcntl.h>
#include <fcntl.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
#endif
#elif defined(__OpenBSD__)
#elif defined(__OpenBSD__)
#include <sys/param.h>
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/sysctl.h>
...
@@ -35,7 +39,6 @@
...
@@ -35,7 +39,6 @@
#include "libavutil/cpu.h"
#include "libavutil/cpu.h"
#include "libavutil/cpu_internal.h"
#include "libavutil/cpu_internal.h"
#include "config.h"
/**
/**
* This function MAY rely on signal() or fork() in order to make sure AltiVec
* This function MAY rely on signal() or fork() in order to make sure AltiVec
...
...
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