[libvirt] Re: [Libvir] [PATCH] lxc: loop in tty forwarding process

Jim Meyering jim at meyering.net
Wed May 7 13:45:46 UTC 2008


Daniel Veillard <veillard at redhat.com> wrote:
> On Tue, May 06, 2008 at 12:51:08AM -0700, Dave Leskovec wrote:
>   Sounds fine in principle but i have a couple of questions with the patch
>
>> +#include <stdbool.h>
>
>   err ... what is that ? looks like a linux specific header, do we really
> need this ? epoll is linux specific I think but  #include <sys/epoll.h>
> should be sufficient no ?

<stdbool.h> is not Linux specific.
It's the C99-specified header that provides e.g,. the "bool" type.

Good C code has been able to use the "bool" type portably (at least
through autoconf/gnulib-provided insulation) for many years.
These days you rarely need the compatibility shims,
since nearly everyone has a c99-compliant compiler.




More information about the libvir-list mailing list