[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18508: Incomplete type pollfd
From: |
Ludovic Courtès |
Subject: |
bug#18508: Incomplete type pollfd |
Date: |
Sat, 27 Sep 2014 11:41:09 +0200 |
User-agent: |
Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux) |
Andreas Enge <address@hidden> skribis:
> On Mon, Sep 22, 2014 at 10:43:27AM +0200, Ludovic Courtès wrote:
>> What libc version is this?
>
> The package is glibc-2.12-1.107.el6_4.5.x86_64.
Oh, OK.
>> It would have been great, if this is still possible, to post lib/poll.h.
>> Normally that file uses #include_next to get libc’s <poll.h>, but maybe
>> that mechanism somehow fails with old GCC versions.
>
> I just retried the compilation, and poll.h is attached. It contains
> #if 1
> # include_next <poll.h>
> #endif
Normally that should be enough to get the ‘struct pollfd’ definition no?
Does something like this build correctly with ‘gcc -Wall -c’:
--8<---------------cut here---------------start------------->8---
#include <poll.h>
int
foo (struct pollfd *x)
{
return x->events;
}
--8<---------------cut here---------------end--------------->8---
Thanks,
Ludo’.