[x264-devel] bug in common/cpu.c

Sam Mortimer sam.mortimer at gmail.com
Wed Jul 18 16:39:17 CEST 2007


> > On which Operating System did you experience this problem?
> > No problem here on OSX and Linux.
>
> This is Linux 2.6.18 - Gentoo flavor. Error was:
>
> gcc -O4 -ffast-math  -Wall -I. -DHAVE_MALLOC_H -DHAVE_MMX -DARCH_X86
> -DSYS_LINUX -DHAVE_PTHREAD -s -fomit-frame-pointer   -c -o common/cpu.o
> common/cpu.c
> common/cpu.c: In function `x264_cpu_num_processors':
> common/cpu.c:214: warning: passing arg 2 of `sched_getaffinity' makes
> pointer from integer without a cast
> common/cpu.c:214: error: too many arguments to function `sched_getaffinity'
> make: *** [common/cpu.o] Error 1
>
> On a hunch I eliminated the first param, recompiled and it worked. Where
> is sched_getaffinity defined?

man sched_getaffinity says sched.h :-)

from my fedora 6 (with all latest updates) /usr/include/sched.h:
/* Get the CPU affinity for a task */
extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
                              cpu_set_t *__cpuset) __THROW;

$ rpm -q --whatprovides /usr/include/sched.h
glibc-headers-2.5-18.fc6
_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
http://mailman.videolan.org/listinfo/x264-devel


More information about the x264-devel mailing list