[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#225300: libc6-dev: sys/poll.h do not define POLLRDNORM



On Thu, Jan 01, 2004 at 07:00:09PM +0100, Simone Piccardi wrote:
> On Tue, 2003-12-30 at 04:23, Colin Watson wrote:
> > This definitely implies to me that you need to define _XOPEN_SOURCE
> > (__USE_XOPEN may have the same effect but it's supposed to be set by
> > <features.h>, not the user) in order to get this constant. See 'info
> > libc "Feature Test Macros"' for information on this kind of thing.
> Sorry, I was not clear. I defined _XOPEN_SOURCE. But still not working.
> I'll find the program that do not work in the attachment, and those are
> the errors:
> gcc -L./ -lgapil -Wall -g -fPIC  poll_echod.c -o pechod
> poll_echod.c: In function `main':
> poll_echod.c:167: error: `POLLRDNORM' undeclared (first use in this
> function)
> poll_echod.c:167: error: (Each undeclared identifier is reported only
> once
> poll_echod.c:167: error: for each function it appears in.)

You're defining _XOPEN_SOURCE in the middle of a file.  You can't do
that; it should generally be on the command line, or else preceeding
all #include statements.

Take a look at the section "Feature Test Macros" in the glibc manual.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: