mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-24 06:22:44 +00:00
[BUILD] fix build on AIX due to recent log changes
This commit is contained in:
parent
81ae1953bf
commit
019767b546
@ -22,6 +22,7 @@
|
||||
#ifndef _TYPES_LOG_H
|
||||
#define _TYPES_LOG_H
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <netinet/in.h>
|
||||
#include <common/config.h>
|
||||
@ -54,8 +55,6 @@ struct logsrv {
|
||||
} u;
|
||||
};
|
||||
|
||||
int logsrv_addrlen(const struct logsrv *logsrv);
|
||||
|
||||
#endif /* _TYPES_LOG_H */
|
||||
|
||||
/*
|
||||
|
@ -147,7 +147,7 @@ int get_log_facility(const char *fac)
|
||||
/*
|
||||
* 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
|
||||
switch (logsrv->u.addr.sa_family) {
|
||||
|
@ -99,7 +99,7 @@ struct sockaddr_un *str2sun(char *str)
|
||||
}
|
||||
|
||||
#ifndef __SOCKADDR_COMMON
|
||||
sun.sun_len = sizeof(sun);
|
||||
sun.sun_len = sizeof(sun.sun_path);
|
||||
#endif /* !__SOCKADDR_COMMON */
|
||||
sun.sun_family = AF_UNIX;
|
||||
memcpy(sun.sun_path, str, strsz);
|
||||
|
Loading…
Reference in New Issue
Block a user