Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 2010 22:45:41 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-multimedia@freebsd.org, "Martin Matus\(ka" <mm@freebsd.org>
Subject:   Re: ffmpeg and mmap
Message-ID:  <20101212204541.GA33073@deviant.kiev.zoral.com.ua>
In-Reply-To: <4D05332C.7010208@freebsd.org>
References:  <4D05332C.7010208@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--gd+outVunBU67ahz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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.

--gd+outVunBU67ahz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk0FNHUACgkQC3+MBN1Mb4iDVwCfRZi2kBGKrWXvEBt/uTzEaoKb
jhMAn0q/dohVX7GXZmawJ0RFVJlM2rlR
=6/jm
-----END PGP SIGNATURE-----

--gd+outVunBU67ahz--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101212204541.GA33073>