netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thorben Hasenpusch <thorben.hasenpusch@gmail.com>
To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Userspace header linux/netlink.h uses GCC-specific 'typeof'
Date: Tue, 10 Sep 2013 14:51:16 +0200	[thread overview]
Message-ID: <1378817476.2011.2.camel@jumpzero> (raw)

Compilation of a user space program which includes linux/netlink.h and
uses NL_MMAP_MSG_ALIGN fails if GCC is ordered not to use GNU
extensions.
__KERNEL_ALIGN is defined to use typeof which is a GCC-extension and not
supported by standard C/C++.
Can that be changed so standard conforming C/C++ compiles successfully?

Regards.

                 reply	other threads:[~2013-09-10 12:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1378817476.2011.2.camel@jumpzero \
    --to=thorben.hasenpusch@gmail.com \
    --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;
as well as URLs for NNTP newsgroup(s).