[BUILD] fix build on AIX due to recent log changes

This commit is contained in:
Willy Tarreau 2007-12-05 11:11:55 +01:00
parent 81ae1953bf
commit 019767b546
3 changed files with 3 additions and 4 deletions

View File

@ -22,6 +22,7 @@
#ifndef _TYPES_LOG_H #ifndef _TYPES_LOG_H
#define _TYPES_LOG_H #define _TYPES_LOG_H
#include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <common/config.h> #include <common/config.h>
@ -54,8 +55,6 @@ struct logsrv {
} u; } u;
}; };
int logsrv_addrlen(const struct logsrv *logsrv);
#endif /* _TYPES_LOG_H */ #endif /* _TYPES_LOG_H */
/* /*

View File

@ -147,7 +147,7 @@ int get_log_facility(const char *fac)
/* /*
* Return the length of the address endpoint, suitable for use with sendto(). * Return the length of the address endpoint, suitable for use with sendto().
*/ */
int logsrv_addrlen(const struct logsrv *logsrv) static inline int logsrv_addrlen(const struct logsrv *logsrv)
{ {
#ifdef __SOCKADDR_COMMON #ifdef __SOCKADDR_COMMON
switch (logsrv->u.addr.sa_family) { switch (logsrv->u.addr.sa_family) {

View File

@ -99,7 +99,7 @@ struct sockaddr_un *str2sun(char *str)
} }
#ifndef __SOCKADDR_COMMON #ifndef __SOCKADDR_COMMON
sun.sun_len = sizeof(sun); sun.sun_len = sizeof(sun.sun_path);
#endif /* !__SOCKADDR_COMMON */ #endif /* !__SOCKADDR_COMMON */
sun.sun_family = AF_UNIX; sun.sun_family = AF_UNIX;
memcpy(sun.sun_path, str, strsz); memcpy(sun.sun_path, str, strsz);