graygnuorg / pound

Light-weight reverse proxy, load balancer and HTTPS front-end for Web servers.
GNU General Public License v3.0
43 stars 13 forks source link

include limits.h #17

Closed ffontaine closed 11 months ago

ffontaine commented 1 year ago

Include limits.h to avoid the following build failure:

poundctl.c: In function 'oi_getn':
poundctl.c:232:29: error: 'INT_MAX' undeclared (first use in this function)
  232 |   if (errno || n < 0 || n > INT_MAX)
      |                             ^~~~~~~

Fixes:

graygnuorg commented 11 months ago

Thanks, Fabrice. However, since such constants are used in multiple files, I believe it is best to include limits.h in the pound.h file, which I did in commit 05d499180ec53bbe9eec725c4c884ddbc3c33731.

ffontaine commented 11 months ago

Sure closing this PR