Do not declare patchpoints 'static' as we sometimes make 'extern' references to it
authorshort <>
Sun, 9 Feb 2003 11:01:07 +0000 (11:01 +0000)
committershort <>
Sun, 9 Feb 2003 11:01:07 +0000 (11:01 +0000)
src/libcaptive/ke/captivesym.pl

index 1a18bc3..be7978d 100755 (executable)
@@ -123,7 +123,9 @@ HERE
                next;
                }
        if ($patch{$symbol{$symbol}} && "data" ne $def->{"type"}) {
-               print "static struct captive_ModuleList_patchpoint ${symbol}_patchpoint;\n";
+               # We do not declare it 'static' as we sometimes make 'extern' references to it
+               # such as 'ExInitializeNPagedLookasideList_patchpoint' in libcaptive/ex/lookas.c.
+               print "struct captive_ModuleList_patchpoint ${symbol}_patchpoint;\n";
                }
        if ("data" eq $def->{"type"}) {
                die "'data' type not pass-able: $symbol" if $def->{"pass"} || $def->{"wrap"};