[XviD-devel] [PATCH] xvid-1.2.2 compilation patch for Darwin

Fabian Groffen grobian at gentoo.org
Sun May 31 16:27:39 CEST 2009


On 31-05-2009 14:03:00 +0200, Michael Militzer wrote:
> thanks for the patch. I however do not really understand why it is needed.
> Xvid 1.2.2 compiles fine for me on OSX 10.5 (x86) without any modification.
> Also according to the Darwin documentation, _SC_NPROCESSORS_CONF should be
> available:
> 
> http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/sysconf.3.html
> 
> So I don't understand why we should avoid the use of _SC_NPROCESSORS_CONF
> for Darwin (as your patch indicates). Can you shed some light on this?

On 10.4 _SC_NPROCESSORS_CONF is not available.  I can imagine you'd want
some tweaking of the patch though.

Thanks!


> Quoting Fabian Groffen <grobian at gentoo.org>:
> > ../../src/xvid.c: In function ‘xvid_gbl_info’:
> > ../../src/xvid.c:682: error: ‘_SC_NPROCESSORS_CONF’ undeclared   
> > (first use in this function)

-- 
Fabian Groffen
Gentoo on a different level


More information about the Xvid-devel mailing list