bug-inetutils
[Top][All Lists]
Advanced

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

[bug-inetutils] Re: [patches] man/Makefile.am, telnetd/telnetd.c, ifconf


From: Mats Erik Andersson
Subject: [bug-inetutils] Re: [patches] man/Makefile.am, telnetd/telnetd.c, ifconfig/if_index.c
Date: Tue, 21 Sep 2010 11:57:59 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

tisdag den 21 september 2010 klockan 10:56 skrev Simon Josefsson detta:
> Mats Erik Andersson <address@hidden> writes:
> 
> >     ifconfig/if_index.c: Encapsulate using HAVE_STRUCT_IF_NAMEINDEX
> 
> Here I am less certain, so I didn't push this one.  All these #ifdef's
> are ugly.  Can't we move this into gnulib to allow the code to assume
> there is a struct?  I'm assuming it is a standard GNU/POSIX struct.
> Note that I am only speaking generally, I haven't considered the details
> around this struct at all.

Without the proposed change, OpenBSD comes to a halt with a cryptic
message about clashing prototypes for free(3). The explanation is
that OpenBSD uses

    ### /usr/include/net/if.h

    #define if_freenameindex(x) free(x)

The corresponding function in GNU/Linux is a true function!


Mats E A



reply via email to

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