BUILD: tcp: condition TCP keepalive settings to platforms providing them
authorWilly Tarreau <w@1wt.eu>
Thu, 9 Jul 2020 03:58:51 +0000 (05:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 Jul 2020 03:58:51 +0000 (05:58 +0200)
commit5254321d1447bc72a22f0381a0225175d42e6704
treefcd0ab0b48d7ce4161df3ac5d4b5eeb0f2651d09
parentb24bc0dfb6cc6136d87d19d29acf5cc68803d49b
BUILD: tcp: condition TCP keepalive settings to platforms providing them

Previous commit b24bc0d ("MINOR: tcp: Support TCP keepalive parameters
customization") broke non-Linux builds as TCP_KEEP{CNT,IDLE,INTVL} are
not necessarily defined elsewhere.

This patch adds the required #ifdefs to condition the visibility of the
keywords, and adds a mention in the doc about their dependency on Linux.
doc/configuration.txt
src/proto_tcp.c
src/proxy.c
src/session.c