bug-gnulib
[Top][All Lists]
Advanced

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

Re: namespace conflict for des


From: Stepan Kasal
Subject: Re: namespace conflict for des
Date: Mon, 24 Oct 2005 16:00:44 +0200
User-agent: Mutt/1.4.1i

Hello,

On Sun, Oct 23, 2005 at 10:25:48PM -0700, Paul Eggert wrote:
> Simon Josefsson <address@hidden> writes:
> > In file included from smbutil.c:34:
> > lib/des.h:62: conflicting types for `des_setkey'
...
> If they are supposed to have the same semantics but the FreeBSD
> versions are buggy, you could rename the functions in unistd.h
> instead, by using #define before #include <unistd.h>.  It's a bit of a
> hack, as it requires that client code to include your .h file before
> it includes unistd.h.  I suppose another possibility is to use linker
> magic but this is a bit less portable in practice.

wouldn't it be better if lib/des.h contained

#include <unistd.h>
#define des_setkey rpl_des_setkey

What am I missing?

Have a nice day,
        Stepan




reply via email to

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