From patchwork Fri Aug 21 16:41:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Walls X-Patchwork-Id: 43125 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7LGdgmQ003706 for ; Fri, 21 Aug 2009 16:39:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932315AbZHUQjM (ORCPT ); Fri, 21 Aug 2009 12:39:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932321AbZHUQjM (ORCPT ); Fri, 21 Aug 2009 12:39:12 -0400 Received: from mail1.radix.net ([207.192.128.31]:54372 "EHLO mail1.radix.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932315AbZHUQjM (ORCPT ); Fri, 21 Aug 2009 12:39:12 -0400 Received: from [192.168.1.2] (01-199.155.popsite.net [66.217.131.199]) (authenticated bits=0) by mail1.radix.net (8.13.4/8.13.4) with ESMTP id n7LGco22010634; Fri, 21 Aug 2009 12:38:51 -0400 (EDT) Subject: [PATCH] v4l-dvb-compat: Fix build for older kernels using DIV_ROUND_CLOSEST From: Andy Walls To: linux-media@vger.kernel.org Cc: Devin Heitmueller , Julia Lawall , Mauro Carvalho Chehab , Avo Aasma , Lou Otway Date: Fri, 21 Aug 2009 12:41:21 -0400 Message-Id: <1250872881.3139.23.camel@palomino.walls.org> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org DIV_ROUND_CLOSEST() is not available on older kernels. Include compat.h in a few files to fix building v4l-dvb from mercurial on older kernels. Reported-by: Lou Otway Reported-by: Avo Aasma Signed-off-by: Andy Walls --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r d0ec20a376fe linux/drivers/media/dvb/frontends/stb6100.c --- a/linux/drivers/media/dvb/frontends/stb6100.c Thu Aug 20 01:30:58 2009 +0000 +++ b/linux/drivers/media/dvb/frontends/stb6100.c Fri Aug 21 12:33:46 2009 -0400 @@ -24,6 +24,7 @@ #include #include +#include "compat.h" #include "dvb_frontend.h" #include "stb6100.h" diff -r d0ec20a376fe linux/drivers/media/dvb/frontends/tda10021.c --- a/linux/drivers/media/dvb/frontends/tda10021.c Thu Aug 20 01:30:58 2009 +0000 +++ b/linux/drivers/media/dvb/frontends/tda10021.c Fri Aug 21 12:33:46 2009 -0400 @@ -29,6 +29,7 @@ #include #include +#include "compat.h" #include "dvb_frontend.h" #include "tda1002x.h" diff -r d0ec20a376fe linux/drivers/media/dvb/frontends/ves1820.c --- a/linux/drivers/media/dvb/frontends/ves1820.c Thu Aug 20 01:30:58 2009 +0000 +++ b/linux/drivers/media/dvb/frontends/ves1820.c Fri Aug 21 12:33:46 2009 -0400 @@ -27,6 +27,7 @@ #include #include +#include "compat.h" #include "dvb_frontend.h" #include "ves1820.h"