When not defined, set the value to 0. Fixes a gnutls.c build issue on Solaris 10, which doesn't have O_DIRECTORY.
Ref: http://mailman.videolan.org/pipermail/vlc-devel/2012-February/086933.html --- include/vlc_fixups.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h index 98d77ac..dd56fef 100644 --- a/include/vlc_fixups.h +++ b/include/vlc_fixups.h @@ -337,4 +337,10 @@ long nrand48 (unsigned short subi[3]); # undef HAVE_FORK /* Implementation of fork() is imperfect on OS/2 */ #endif +/* O_DIRECTORY is a Linux-specific constant, not present in Solaris and BSD + * systems. */ +#ifndef O_DIRECTORY +#define O_DIRECTORY 0 +#endif + #endif /* !LIBVLC_FIXUPS_H */ -- 1.7.5.4 _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel