mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-13 06:54:37 +00:00
[BUILD] fix build of global section with older gcc versions
The way the global section was initialized was not correct, which made older versions of GCC complain.
This commit is contained in:
parent
fbee71331d
commit
03f6d67c48
@ -117,11 +117,17 @@ struct global global = {
|
||||
loglev1 : 7, /* max syslog level : debug */
|
||||
loglev2 : 7,
|
||||
.stats_timeout = { .tv_sec = 10, .tv_usec = 0 }, /* stats timeout = 10 seconds */
|
||||
.stats_sock.timeout = &global.stats_timeout,
|
||||
.stats_sock.maxconn = 10, /* 10 concurrent stats connections */
|
||||
.stats_sock.perm.ux.uid = -1,
|
||||
.stats_sock.perm.ux.gid = -1,
|
||||
.stats_sock.perm.ux.mode = 0,
|
||||
.stats_sock = {
|
||||
.timeout = &global.stats_timeout,
|
||||
.maxconn = 10, /* 10 concurrent stats connections */
|
||||
.perm = {
|
||||
.ux = {
|
||||
.uid = -1,
|
||||
.gid = -1,
|
||||
.mode = 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
/* others NULL OK */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user