bug-gnulib
[Top][All Lists]
Advanced

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

Re: would like to break sys_select's dependency on sys_socket


From: Eric Blake
Subject: Re: would like to break sys_select's dependency on sys_socket
Date: Thu, 30 Jun 2011 07:02:58 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 06/30/2011 05:45 AM, Simon Josefsson wrote:
> Paul Eggert <address@hidden> writes:
> 
>> I am planning to make some changes to GNU Emacs which the
>> gnulib sys_select module would be helpful for.  But sys_select
>> depends on sys_socket, and that drags in some stuff
>> like m4/sockpfaf.m4 and m4/sys_uio_h.m4 that I'd rather
>> avoid.  Any objection if I remove this dependency?  It appears
>> that it's needed only because of native Windows platforms, and
>> applications that use gnulib shouldn't have to do extra work
>> just to support Windows.
> 
> Is it native Windows or MinGW?
> 
> I don't see anything directly in m4/sockpfaf.m4 that is used by
> sys_socket.in.h, but I could miss it.
> 
> m4/sys_uio.m4 appears to be for 'struct iovec', maybe sys/socket.h is
> required to provide it?

Yes, sys/socket.h is required to provide struct iovec, by virtue of
struct msghdr.  But I would be okay with making the use of sys_uio.h
conditional on whether or not we are overriding sendmsg and recvmsg,
since they are the only clients of struct msghdr (but that in itself
entails some work, since we don't yet have sendmsg and recvmsg modules).

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]