[Click] [PATCH 04/12] Configury: prepend net_device namespace for NETREG_REGISTERED
Joonwoo Park
joonwpark81 at gmail.com
Sun Sep 26 01:29:32 EDT 2010
eliminate syntax error below:
error: ‘NETREG_REGISTERED’ was not declared in this scope
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 5553d9a..4088643 100755
--- a/linuxmodule/fixincludes.pl
+++ b/linuxmodule/fixincludes.pl
@@ -211,6 +211,9 @@ sub one_includeroot ($$) {
if ($d eq "kobject.h") {
s{(^\#include \<linux\/sysfs.h\>(.*\n)*)(^enum kobj_ns_type\s\{\n([^\}].*\n)*\}\;)((.*\n)*)}{"$3\n$1\/*\n$3\n*\/$5"}emg;
}
+ 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;
+ }
# unquote.
$_ = sunprotect($_);
--
1.7.0.4
More information about the click
mailing list