ffmpeg and mmap

Kostik Belousov kostikbel at gmail.com
Sun Dec 12 21:24:21 UTC 2010


On Sun, Dec 12, 2010 at 10:40:12PM +0200, Andriy Gapon wrote:
> To get around that issue _on Linux_, ffmpeg folks have put explicit
> _SVID_SOURCE definition right into the libswscale/utils.c file:
> #define _SVID_SOURCE //needed for MAP_ANONYMOUS
>
> For much the same reason we need to add the following for FreeBSD (as
> hackish as it is): #define __BSD_VISIBLE 1
>
> With that addition the code buffer is allocated properly and the code
> in it can be executed.
Applications should never define the symbols from reserved namespace,
in this case __BSD_VISIBLE. Right solution is to not define _POSIX_SOURCE.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20101212/d1893404/attachment.pgp


More information about the freebsd-multimedia mailing list