diff options
author | vkalintiris <vasilis@netdata.cloud> | 2023-01-19 20:10:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 20:10:17 +0200 |
commit | 86538b005de50f23c9ff66542abab11683b85c06 (patch) | |
tree | 508dbef8f35bfdd36152b37bd07932cf5287c7f9 | |
parent | 1934696c45fbcd35d453b5f026fc278bab40d5f7 (diff) |
Fix macos struct definition. (#14297)
-rw-r--r-- | collectors/statsd.plugin/statsd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/collectors/statsd.plugin/statsd.c b/collectors/statsd.plugin/statsd.c index bd8cee153f..7a28461a99 100644 --- a/collectors/statsd.plugin/statsd.c +++ b/collectors/statsd.plugin/statsd.c @@ -874,21 +874,19 @@ struct statsd_tcp { char buffer[]; }; -#ifdef HAVE_RECVMMSG struct statsd_udp { struct collection_thread_status *status; STATSD_SOCKET_DATA_TYPE type; + +#ifdef HAVE_RECVMMSG size_t size; struct iovec *iovecs; struct mmsghdr *msgs; -}; #else -struct statsd_udp { int *running; - STATSD_SOCKET_DATA_TYPE type; char buffer[STATSD_UDP_BUFFER_SIZE]; -}; #endif +}; // new TCP client connected static void *statsd_add_callback(POLLINFO *pi, short int *events, void *data) { |