[Click] [PATCH 12/12] Configury: workaround ___assert_task_state
Joonwoo Park
joonwpark81 at gmail.com
Sun Sep 26 01:39:27 EDT 2010
Hi Eddie,
Please use new patch below as prior patch has an useless line.
Thanks,
Joonwoo
>From 4321f5f5f4de70429e0bf22a6473a57fef9d10a6 Mon Sep 17 00:00:00 2001
From: Joonwoo Park <joonwpark81 at gmail.com>
Date: Fri, 24 Sep 2010 08:33:56 -0400
Subject: [PATCH] Configury: workaround ___assert_task_state
c++ doesn't allow an array with variable size.
avoid build error below:
click/click/include/click-linuxmodule/include1/linux/sched.h:200: error: array bound is not an integer constant
Signed-off-by: Joonwoo Park <joonwpark81 at gmail.com>
---
linuxmodule/fixincludes.pl | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/linuxmodule/fixincludes.pl b/linuxmodule/fixincludes.pl
index 4088643..e130c29 100755
--- a/linuxmodule/fixincludes.pl
+++ b/linuxmodule/fixincludes.pl
@@ -214,6 +214,9 @@ sub one_includeroot ($$) {
if ($d eq "netdevice.h") {
s{(.*)(\(.*\b)(NETREG_.+)(\b\))}{#ifdef __cplusplus\n$1$2net_device::$3$4\n#else\n$1$2$3$4\n#endif}g;
}
+ if ($d eq "sched.h") {
+ s<(^extern char ___assert_task_state)((.+\n)*.*(\;))><\#ifndef __cplusplus\n$1$2\n\#endif>mg;
+ }
# unquote.
$_ = sunprotect($_);
--
1.7.0.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Configury-workaround-___assert_task_state.patch
Type: text/x-diff
Size: 1097 bytes
Desc: not available
Url : http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20100925/86a54db9/attachment.patch
More information about the click
mailing list