On 03/18/2010 07:40 PM, Bruno Haible wrote:
>> +  AC_CHECK_DECLS([forkpty],,, [[
>> +#if HAVE_UTIL_H
>> +# include <util.h>
>> +#endif
>> +#if HAVE_LIBUTIL_H
>> +# include <libutil.h>
>> +#endif
>> +]])
> 
> Why does this set of includes not contain
> #if HAVE_PTY_H
> # include <pty.h>
> #endif
> ? Isn't it needed on glibc systems?

When the code was part of gl_PTY, it did not need the check (it was
inside a block that already checked for $ac_cv_header_pty_h = no;
therefore, the assumption was that if you have <pty.h>, you don't have
to check for the decl).  But now that it is independently checked, you
are correct that I should also be conditionally including <pty.h>.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to