changeset 22752:936f98562a5f

Conditionally compile vf_bmovl.c instead of enclosing all of the file in #ifdef HAVE_POSIX_SELECT.
author diego
date Wed, 21 Mar 2007 08:29:46 +0000
parents 3d83d77f5a6b
children 42bbd2c1c5e6
files configure libmpcodecs/Makefile libmpcodecs/vf_bmovl.c
diffstat 3 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Mar 21 08:24:20 2007 +0000
+++ b/configure	Wed Mar 21 08:29:46 2007 +0000
@@ -7530,6 +7530,7 @@
 HAVE_XVMC_ACCEL = $_xvmc
 
 HAVE_SYS_MMAN_H = $_mman
+HAVE_POSIX_SELECT = $_posix_select
 
 NEED_FSEEKO  = $_need_fseeko
 NEED_FTELLO  = $_need_ftello
--- a/libmpcodecs/Makefile	Wed Mar 21 08:24:20 2007 +0000
+++ b/libmpcodecs/Makefile	Wed Mar 21 08:29:46 2007 +0000
@@ -33,7 +33,6 @@
               vf_1bpp.c \
               vf_2xsai.c \
               vf_blackframe.c \
-              vf_bmovl.c \
               vf_boxblur.c \
               vf_crop.c \
               vf_cropdetect.c \
@@ -108,6 +107,7 @@
 SRCS_COMMON-$(CONFIG_LIBPOSTPROC)    += vf_pp.c
 SRCS_COMMON-$(CONFIG_LIBPOSTPROC_SO) += vf_pp.c
 SRCS_COMMON-$(FAAD)                  += ad_faad.c
+SRCS_COMMON-$(HAVE_POSIX_SELECT)     += vf_bmovl.c
 SRCS_COMMON-$(JPEG)                  += vd_ijpg.c
 SRCS_COMMON-$(LIBA52)                += ad_liba52.c
 SRCS_COMMON-$(LIBDV)                 += ad_libdv.c vd_libdv.c
--- a/libmpcodecs/vf_bmovl.c	Wed Mar 21 08:24:20 2007 +0000
+++ b/libmpcodecs/vf_bmovl.c	Wed Mar 21 08:29:46 2007 +0000
@@ -68,8 +68,6 @@
 #include "vf.h"
 #include "img_format.h"
 
-#ifdef HAVE_POSIX_SELECT
-
 #include "mp_msg.h"
 #include "libavutil/common.h"
 
@@ -479,5 +477,3 @@
     vf_open,
     NULL
 };
-
-#endif