mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: Linux Kernel list <linux-kernel@vger.kernel.org>
Cc: netdev@vger.kernel.org
Subject: use of bool in exported headers?
Date: Fri, 18 Jul 2008 01:28:02 -0500	[thread overview]
Message-ID: <0FE8A686-5F80-4868-8C85-5E82EA9EF2D1@kernel.crashing.org> (raw)

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

             reply	other threads:[~2008-07-18  6:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-18  6:28 Kumar Gala [this message]
2008-07-18  9:07 ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0FE8A686-5F80-4868-8C85-5E82EA9EF2D1@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®