[vlc-devel] [PATCH 2/2] Work around the lack of dirfd()

Rémi Denis-Courmont remi at remlab.net
Tue Feb 28 15:14:20 CET 2012

On Tue, 28 Feb 2012 13:49:44 +0000, Maciej (Matchek) Bliziński
<maciej at opencsw.org> wrote:
> 2012/2/28 Rémi Denis-Courmont <remi at remlab.net>:
>> On Tue, 28 Feb 2012 09:37:28 +0000, Maciej (Matchek) Bliziński
>> <maciej at opencsw.org> wrote:
>>> 2012/2/28 Brad Smith <brad at comstyle.com>:
>>>> Solaris does not have posix_memalign(). This will help..
>>> I was thinking that a better approach would be to test for
>>> posix_memalign and define it when missing. What do you think?
>> It is not optional. Why would we test for something that is always
>> except on broken systems that we do not support?
> Rémi,
> Let's step back a bit. If you visit the VideoLAN website[1], you'll
> see "Works on most platforms: Windows, Linux, Mac OS X, Unix..." on
> the front page.

Unix meaning POSIX. Thank you for proving my point.

Also Linux support is POSIX wherever applicable (I mean, Linux specifics
are only used in areas out of POSIX coverage). Thing is, we do our share of
making VLC portable across Unices, rather than only Linux (besides Windows
and MacOS). Implementing POSIX correctly is _not_ our share, that is the
job of the operating system vendor.

> Of course, I
> could write a set of own unportable patches, but I'd much rather work
> with the VLC developers to make the sources work on all platforms
> including Solaris 10, without any need to do further patching. Does it
> sound good to you, or do you have a different suggestion?

There is a technical reason why we don't have a feature check for this
(see other posts).

Rémi Denis-Courmont

More information about the vlc-devel mailing list