[vlc-commits] DTV: do not assume __linux__ == HAVE_LINUX_DVB
Rémi Denis-Courmont
git at videolan.org
Sat Aug 11 22:19:10 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 11 23:16:38 2012 +0300| [bfcefbf2b35650c8149ed9e94890f669187c8a50] | committer: Rémi Denis-Courmont
DTV: do not assume __linux__ == HAVE_LINUX_DVB
This should fix DVB on *BSD.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bfcefbf2b35650c8149ed9e94890f669187c8a50
---
modules/access/Modules.am | 1 +
modules/access/dtv/access.c | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules/access/Modules.am b/modules/access/Modules.am
index a1ca3ef..fa9eb8b 100644
--- a/modules/access/Modules.am
+++ b/modules/access/Modules.am
@@ -184,6 +184,7 @@ libdtv_plugin_la_DEPENDENCIES =
if HAVE_LINUX_DVB
libdtv_plugin_la_SOURCES += dtv/linux.c
+libdtv_plugin_la_CFLAGS += -DHAVE_LINUX_DVB
if HAVE_DVBPSI
libdtv_plugin_la_SOURCES += dtv/en50221.c dtv/en50221.h
libdtv_plugin_la_CFLAGS += -DHAVE_DVBPSI $(DVBPSI_CFLAGS)
diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
index c41cb46..a5fe49f 100644
--- a/modules/access/dtv/access.c
+++ b/modules/access/dtv/access.c
@@ -200,7 +200,7 @@ static const char *const polarization_user[] = { N_("Unspecified (0V)"),
"low noise block-downconverters (LNB) through a DiSEqC 1.0 switch, " \
"the correct LNB can be selected (1 to 4). " \
"If there is no switch, this parameter should be 0.")
-#ifdef __linux__
+#ifdef HAVE_LINUX_DVB
static const int satno_vlc[] = { 0, 1, 2, 3, 4 };
static const char *const satno_user[] = { N_("Unspecified"),
"A/1", "B/2", "C/3", "D/4" };
@@ -252,7 +252,7 @@ vlc_module_begin ()
#endif
)
-#ifdef __linux__
+#ifdef HAVE_LINUX_DVB
add_integer ("dvb-adapter", 0, ADAPTER_TEXT, ADAPTER_LONGTEXT, false)
change_integer_range (0, 255)
change_safe ()
@@ -379,7 +379,7 @@ vlc_module_begin ()
change_integer_range (0, 18)
change_private ()
change_safe ()
-#ifdef __linux__
+#ifdef HAVE_LINUX_DVB
add_bool ("dvb-high-voltage", false,
HIGH_VOLTAGE_TEXT, HIGH_VOLTAGE_LONGTEXT, false)
#endif
@@ -393,7 +393,7 @@ vlc_module_begin ()
LNB_SWITCH_TEXT, LNB_SWITCH_LONGTEXT, true)
change_integer_range (0, 0x7fffffff)
add_obsolete_integer ("dvb-lnb-slof") /* since 2.0.0 */
-#ifdef __linux__
+#ifdef HAVE_LINUX_DVB
add_integer ("dvb-satno", 0, SATNO_TEXT, SATNO_LONGTEXT, true)
change_integer_list (satno_vlc, satno_user)
add_integer ("dvb-uncommitted", 0, UNCOMMITTED_TEXT, UNCOMMITTED_LONGTEXT, true)
More information about the vlc-commits
mailing list