mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-03 03:52:38 +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
|
#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 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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) {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user