Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Guillaume Dargaud <dargaud@lpsc.in2p3.fr>
To: buildroot@busybox.net
Subject: [Buildroot] __USE_GNU ?
Date: Thu, 3 Mar 2011 10:19:44 +0100	[thread overview]
Message-ID: <201103031019.44511.dargaud@lpsc.in2p3.fr> (raw)

Hello all,
I'm trying to compile some code that uses splice/vmplice and I get:
TestSockets.c:85: error: 'SPLICE_F_GIFT' undeclared (first use in this function)
TestSockets.c:86: error: 'SPLICE_F_MOVE' undeclared (first use in this function)

I use #include <fcntl.h> in my code which includes output/host/usr/powerpc-unknown-linux-
uclibc/sysroot/usr/include/bits/fcntl.h
where I see the two corresponding defines for SPLICE_F_*, but the conditional macro __USE_GNU is not defined.

A quick googling tell me it's an internal macro to uclibc, so why is it not on ?
How do I get those two macros ?

Sure, I can define them by hand, but something's fishy.

Thanks for the clarification.
-- 
Guillaume Dargaud
http://www.gdargaud.net/

             reply	other threads:[~2011-03-03  9:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03  9:19 Guillaume Dargaud [this message]
2011-03-03  9:28 ` [Buildroot] __USE_GNU ? Baruch Siach
2011-03-03  9:40 ` Mike Frysinger

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=201103031019.44511.dargaud@lpsc.in2p3.fr \
    --to=dargaud@lpsc.in2p3.fr \
    --cc=buildroot@busybox.net \
    /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