From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] __USE_GNU ?
Date: Thu, 3 Mar 2011 11:28:56 +0200 [thread overview]
Message-ID: <20110303092856.GC20423@jasper.tkos.co.il> (raw)
In-Reply-To: <201103031019.44511.dargaud@lpsc.in2p3.fr>
Hi Guillaume,
On Thu, Mar 03, 2011 at 10:19:44AM +0100, Guillaume Dargaud wrote:
> 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.
Make sure to define _GNU_SOURCE before including any header.
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
next prev parent reply other threads:[~2011-03-03 9:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 9:19 [Buildroot] __USE_GNU ? Guillaume Dargaud
2011-03-03 9:28 ` Baruch Siach [this message]
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=20110303092856.GC20423@jasper.tkos.co.il \
--to=baruch@tkos.co.il \
--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