]> git.ipfire.org Git - thirdparty/lldpd.git/commit
snmp: tentative to fix compilation with older versions of NetSNMP
authorVincent Bernat <vincent@bernat.ch>
Sat, 1 Feb 2020 16:34:29 +0000 (17:34 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sat, 1 Feb 2020 16:36:02 +0000 (17:36 +0100)
commit31ac51a8ef2e062f1eb785b57f590b63a7df3673
tree49db0389a01c866dae463d52909aadea44e1c49b
parent385e5e4cf3a74e1d56947418db49911640cfc4a9
snmp: tentative to fix compilation with older versions of NetSNMP

In fact, gcc doesn't consider the signatures to be compatible when
using a function pointer. Let's use a preprocessor trick to detect the
version and hope gcc is OK with `char*` changed to `void*`.
src/daemon/agent_priv.c