[vlc-devel] [PATCH] O_DIRECTORY workaround in vlc_fixups.h

Francois Cartegnie fcvlcdev at free.fr
Wed Feb 29 16:45:50 CET 2012


Le 29/02/2012 16:22, Rémi Denis-Courmont a écrit :
> On Wed, 29 Feb 2012 15:41:32 +0100, Maciej Blizinski <maciej at opencsw.org>
> wrote:
>> When not defined, set the value to 0.
>> Fixes a gnutls.c build issue on Solaris 10, which doesn't have
> O_DIRECTORY.
> 
> This will set it to 0 all the time because the fcntl.h is not necessarily
> included first.

#if defined(O_CREAT) && !defined(O_DIRECTORY)
#	define O_DIRECTORY 0
#endif

and let fix includes order when it fails ?

Francois



More information about the vlc-devel mailing list