Skip to contentSkip to conversation

module_param: bool params should still work with #include <stdbool.h>

PATCH Rusty Russell 1 participant 1 message Feb 9, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · On Monday 09 February 2009 18:22:26 Rusty Russell wrote:

Code such as "module_param(foo, bool, 0400)" no longer compiles if one includes stdbool.h: the ISO standard requires that this "#define bool _Bool".

Of course, better fix is not to use stdbool.h, but leave it to the typedef in kernel/types.h.

Forget this patch...
Rusty.