Skip to content
Snippets Groups Projects
Commit 5585eafe authored by Anton Mitrofanov's avatar Anton Mitrofanov
Browse files

Fix build on OpenBSD and Android

parent 0bb85e8b
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment