From patchwork Thu Dec 31 11:19:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TsODwqltZXRoIE3Dg8KhcnRvbg==?= X-Patchwork-Id: 70358 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBVBJ7SA012114 for ; Thu, 31 Dec 2009 11:19:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750730AbZLaLTG (ORCPT ); Thu, 31 Dec 2009 06:19:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750722AbZLaLTG (ORCPT ); Thu, 31 Dec 2009 06:19:06 -0500 Received: from mail02d.mail.t-online.hu ([84.2.42.7]:60478 "EHLO mail02d.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbZLaLTF (ORCPT ); Thu, 31 Dec 2009 06:19:05 -0500 Received: from [192.168.1.64] (dsl51B6C4AD.pool.t-online.hu [81.182.196.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail02d.mail.t-online.hu (Postfix) with ESMTPSA id E1171758764; Thu, 31 Dec 2009 12:17:35 +0100 (CET) Message-ID: <4B3C88A4.6070808@freemail.hu> Date: Thu, 31 Dec 2009 12:19:00 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: Mauro Carvalho Chehab CC: Hans Verkuil , Michael Krufky , linux-media@vger.kernel.org Subject: [PATCH] move autoconf.h for 2.6.33 References: <200912291959.nBTJxkB3066435@smtp-vbr9.xs4all.nl> <4B3A72E1.9010107@freemail.hu> <4B3A86ED.1090303@redhat.com> <4B3A8E10.9000609@freemail.hu> In-Reply-To: <4B3A8E10.9000609@freemail.hu> X-DCC-mail.t-online.hu-Metrics: mail02d.mail.t-online.hu 32721; Body=4 Fuz1=4 Fuz2=4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -r 62ee2b0f6556 v4l/scripts/make_config_compat.pl --- a/v4l/scripts/make_config_compat.pl Wed Dec 30 18:19:11 2009 +0100 +++ b/v4l/scripts/make_config_compat.pl Thu Dec 31 11:37:34 2009 +0100 @@ -383,9 +383,19 @@ # Do the basic rules open IN, "<$infile" or die "File not found: $infile"; -$out.= "#ifndef __CONFIG_COMPAT_H__\n"; -$out.= "#define __CONFIG_COMPAT_H__\n\n"; -$out.= "#include \n\n"; +$out .= <<'EOD' +#ifndef __CONFIG_COMPAT_H__ +#define __CONFIG_COMPAT_H__ + +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) +#include +#else +#include +#endif + +EOD +; # mmdebug.h includes autoconf.h. So if this header exists, # then include it before our config is set.