[vlc-devel] Set CD_DEVICE/DVD_DEVICE appropriately for OpenBSD.

Brad brad at comstyle.com
Tue Aug 10 00:16:05 CEST 2010



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
>From 108fd471c7f89b792bd8e427c1391d6a47444765 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Mon, 9 Aug 2010 18:11:16 -0400
Subject: [PATCH] Set CD_DEVICE and DVD_DEVICE to device names appropriate for OpenBSD.

---
 include/vlc_config.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/vlc_config.h b/include/vlc_config.h
index 5727629..4be0107 100644
--- a/include/vlc_config.h
+++ b/include/vlc_config.h
@@ -80,8 +80,13 @@
 
 /* DVD and VCD devices */
 #if !defined( WIN32 ) && !defined( UNDER_CE )
+#if defined(__OpenBSD__)
+#   define CD_DEVICE      "/dev/cd0c"
+#   define DVD_DEVICE     "/dev/cd0c"
+#else
 #   define CD_DEVICE      "/dev/cdrom"
 #   define DVD_DEVICE     "/dev/dvd"
+#endif
 #else
 #   define CD_DEVICE      "D:"
 #   define DVD_DEVICE     NULL
-- 
1.7.1



More information about the vlc-devel mailing list