* use of bool in exported headers?
@ 2008-07-18 6:28 Kumar Gala
2008-07-18 9:07 ` Jan Engelhardt
0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2008-07-18 6:28 UTC (permalink / raw)
To: Linux Kernel list; +Cc: netdev
What's the rule with regards to use of 'bool' in a header exposed to
user space apps?
We are getting the following compile error w/iptables because of bool
in include/linux/netfilter/xt_sctp.h:
In file included from extensions/libip6t_sctp.c:24:
/home/seh/ltib_bsps/head/rootfs//usr/src/linux/include/linux/netfilter/
xt_sctp.h:68: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '__sctp_chunkmap_is_clear'
/home/seh/ltib_bsps/head/rootfs//usr/src/linux/include/linux/netfilter/
xt_sctp.h:80: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '__sctp_chunkmap_is_all_set'
extensions/libip6t_sctp.c: In function 'print_chunks':
extensions/libip6t_sctp.c:427: warning: implicit declaration of
function '__sctp_chunkmap_is_clear'
extensions/libip6t_sctp.c:432: warning: implicit declaration of
function '__sctp_chunkmap_is_all_set'
make: *** [extensions/libip6t_sctp_sh.o] Error 1
error: Bad exit status from /home/seh/ltib_bsps/head/tmp/rpm-tmp.23551
(%build)
- k
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: use of bool in exported headers?
2008-07-18 6:28 use of bool in exported headers? Kumar Gala
@ 2008-07-18 9:07 ` Jan Engelhardt
0 siblings, 0 replies; 2+ messages in thread
From: Jan Engelhardt @ 2008-07-18 9:07 UTC (permalink / raw)
To: Kumar Gala; +Cc: Linux Kernel list, netdev
On Friday 2008-07-18 08:28, Kumar Gala wrote:
> What's the rule with regards to use of 'bool' in a header exposed to user space
> apps?
>
> We are getting the following compile error w/iptables because of bool in
> include/linux/netfilter/xt_sctp.h:
>
> In file included from extensions/libip6t_sctp.c:24:
Use #include <stdbool.h> in userspace.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-18 9:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-18 6:28 use of bool in exported headers? Kumar Gala
2008-07-18 9:07 ` Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®