From 199346a2abd8b6ba282e1fe291cc3766fa921f40 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 11 Feb 2014 20:01:11 -0800 Subject: Fix NSIG. Our sigset_t definition hasn't been tied to our NSIG definition since we switched to uapi headers, so we can now fix it without breaking the LP32 ABI. The kernel uapi headers define and use _NSIG, so we need to have our scripts rename the kernel's definitions out of the way, then we can define _NSIG and NSIG in terms of the kernel's off-by-one value. Bug: 12938442 Change-Id: Ic7c86fd5be5ad1d822f7b2b1d88c8a0d70a1ac0f --- libc/kernel/tools/cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/kernel/tools/cpp.py') diff --git a/libc/kernel/tools/cpp.py b/libc/kernel/tools/cpp.py index 04e42567c..2c40d7c60 100644 --- a/libc/kernel/tools/cpp.py +++ b/libc/kernel/tools/cpp.py @@ -1521,7 +1521,7 @@ class BlockList: """replace tokens according to the given dict """ for b in self.blocks: - if not b.isDirective(): + if (not b.isDirective()) or b.isDefine(): for tok in b.tokens: if tok.id == tokIDENT: if tok.value in replacements: -- cgit v1.2.3