diff options
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | stream/stream_radio.c | 6 |
2 files changed, 4 insertions, 5 deletions
@@ -6720,6 +6720,9 @@ else fi echores "$_radio_v4l" +if test "$_radio_v4l" = no && test "$_radio_v4l2" = no && test "$_radio" = yes ; then + die "Radio driver requires V4L or V4L2!" +fi echocheck "Video 4 Linux 2/IVTV PVR interface" if test "$_pvr" = auto ; then diff --git a/stream/stream_radio.c b/stream/stream_radio.c index 44b88e859b..b5e8de2fdb 100644 --- a/stream/stream_radio.c +++ b/stream/stream_radio.c @@ -1,5 +1,3 @@ - -#include "config.h" /* * Radio support * @@ -32,9 +30,7 @@ #undef USE_RADIO_CAPTURE #endif -#if !defined(HAVE_RADIO_V4L) && !defined(HAVE_RADIO_V4L2) -#error "This driver requires V4L1 or V4L2!" -#endif +#include "config.h" #include <stdlib.h> #include <stdio.h> |