add proto compat for getsockname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8910 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -582,6 +582,12 @@ struct hostent* roken_gethostbyaddr(const void*, size_t, int);
|
|||||||
#define roken_openlog(a,b,c) openlog((char *)a,b,c)
|
#define roken_openlog(a,b,c) openlog((char *)a,b,c)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef GETSOCKNAME_PROTO_COMPATIBLE
|
||||||
|
#define roken_getsockname(a,b,c) getsockname(a,b,c)
|
||||||
|
#else
|
||||||
|
#define roken_getsockname(a,b,c) getsockname(a, b, (void*)c)
|
||||||
|
#endif
|
||||||
|
|
||||||
void set_progname(char *argv0);
|
void set_progname(char *argv0);
|
||||||
const char *get_progname(void);
|
const char *get_progname(void);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user