]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] move MAXPATHLEN definition to compat.h
authorWilly Tarreau <w@1wt.eu>
Sun, 7 Nov 2010 10:44:13 +0000 (11:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Nov 2010 08:21:53 +0000 (09:21 +0100)
commit17f449b214620cf3838fbf89a16736262a04ce5f
tree289b0f4d142c28c250c46acafc3a7be465357edd
parentceb24bc7b4c62b446c761dc998f7afffc33928ce
[MINOR] move MAXPATHLEN definition to compat.h

MAXPATHLEN may be used at other places, it's unconvenient to have it
redefined in a few files. Also, since checking it requires including
sys/param.h, some versions of it cause a macro declaration conflict
with MIN/MAX which are defined in tools.h. The solution consists in
including sys/param.h in both files so that we ensure it's loaded
before the macros are defined and MAXPATHLEN is checked.
include/common/compat.h
include/common/tools.h
src/proto_uxst.c