]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: dumpstats: fix build error on Solaris
authorWilly Tarreau <w@1wt.eu>
Mon, 16 Dec 2013 00:42:03 +0000 (01:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 16 Dec 2013 01:23:51 +0000 (02:23 +0100)
commitb908befdae9dd244340a59f43f18e0b855ba64bb
treefbde17226fcab33b1e365322865409ce9ab96d78
parent0f28f82cec1621cebc4420ab2ef9dbc794bd890c
BUILD: dumpstats: fix build error on Solaris

Since the recent addition of map updates, haproxy does not build anymore
on Solaris because "s_addr" is a #define :

src/dumpstats.c: In function `stats_map_lookup':
src/dumpstats.c:4688: error: syntax error before '.' token
src/dumpstats.c:4781: error: `S_un' undeclared (first use in this function)
src/dumpstats.c:4781: error: (Each undeclared identifier is reported only once
src/dumpstats.c:4781: error: for each function it appears in.)
make: *** [src/dumpstats.o] Error 1

Simply rename the variable.
src/dumpstats.c