write_prometheus plugin: Only use SOCK_CLOEXEC if it is defined.
authorFlorian Forster <octo@collectd.org>
Wed, 6 Feb 2019 14:47:00 +0000 (15:47 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 6 Feb 2019 14:47:00 +0000 (15:47 +0100)
commitff780ec90d561d7f50bb17c355aaaa5d072d5672
tree04561228d7ef88c222821471ef6b9f3beb18403f
parente66bc653b403a8174aa7bc6b25883930a51175f0
write_prometheus plugin: Only use SOCK_CLOEXEC if it is defined.

Fixes compilation issue on Mac OS X. See also #3055.
src/write_prometheus.c