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 <[email protected]>
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 <[email protected]>
---
 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
>From 4321f5f5f4de70429e0bf22a6473a57fef9d10a6 Mon Sep 17 00:00:00 2001
From: Joonwoo Park <[email protected]>
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 <[email protected]>
---
 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

_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

Reply via email to