libident

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jon Morby
Date:  
À: exim-users
Sujet: libident
libident/ident.h has the following at about line 115

 #if defined(__GNUC__) && !defined(DST_NONE) 
 #  define __STRUCT_TIMEVAL_P    void *
 #else
 #  define __STRUCT_TIMEVAL_P    struct timeval *
 #endif


My question is what is DST_NONE?

Reason for asking is that under NetBSD 1.2D libident fails to compile for
the following reason ....

id_open.c:44: conflicting types for `id_open'
ident.h:154: previous declaration of `id_open'
*** Error code 1

This being down to the definition of id_open as follows .....

ident.h:
extern ident_t * id_open __P((__STRUCT_IN_ADDR_P laddr,
               __STRUCT_IN_ADDR_P faddr,
               __STRUCT_TIMEVAL_P timeout));


id_open.c:
ident_t *id_open __P3(struct in_addr *, laddr,
              struct in_addr *, faddr,
              struct timeval *, timeout)



Spot the deliberate mistake?

I've temporarily removed the definition to void * so as to be able to build
1.62 on monty, but I'd be interested in knowing where DST_NONE is meant to
be defined (or in fact why that comes into the equation) so I can send Phil
a patch.

(This also happens with 1.61 under 1.2D - but not 1.2C)
-- 
Jon Morby                                  mail: jon@???
Fidonet/Internet Gateway                   http: www.fido.net