[csw-devel] [PATCH] O_DIRECTORY workaround in vlc_fixups.h
Maciej Blizinski
maciej at opencsw.org
Wed Feb 29 15:41:32 CET 2012
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
More information about the devel
mailing list