commit | 17f449b214620cf3838fbf89a16736262a04ce5f | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Nov 07 11:44:13 2010 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Nov 11 09:21:53 2010 +0100 |
tree | 289b0f4d142c28c250c46acafc3a7be465357edd | |
parent | ceb24bc7b4c62b446c761dc998f7afffc33928ce [diff] |
[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.