Code

all plugins: remove pthread.h include
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 15:44:58 +0000 (17:44 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 15:44:58 +0000 (17:44 +0200)
plugin.h already includes pthread.h

35 files changed:
src/aggregation.c
src/amqp.c
src/dns.c
src/email.c
src/exec.c
src/gmond.c
src/ipmi.c
src/java.c
src/log_logstash.c
src/logfile.c
src/mqtt.c
src/network.c
src/notify_email.c
src/nut.c
src/perl.c
src/pinba.c
src/ping.c
src/postgresql.c
src/python.c
src/redis.c
src/rrdtool.c
src/sigrok.c
src/snmp.c
src/statsd.c
src/threshold.c
src/unixsock.c
src/write_graphite.c
src/write_http.c
src/write_kafka.c
src/write_log.c
src/write_mongodb.c
src/write_redis.c
src/write_riemann.c
src/write_sensu.c
src/write_tsdb.c

index 3d5f396aa53ad453db5e320b12a0b9f9c9e56d63..c4c1627af360ce463ba030cb64e80a4f6667b723 100644 (file)
@@ -26,8 +26,6 @@
 
 #include "collectd.h"
 
-#include <pthread.h>
-
 #include "plugin.h"
 #include "common.h"
 #include "configfile.h"
index fc69e936554a6418b7be9d05784c7bba798a2a13..99dca9014ac628254481ca9dc451eedc21ae564d 100644 (file)
@@ -33,8 +33,6 @@
 #include "utils_format_json.h"
 #include "utils_format_graphite.h"
 
-#include <pthread.h>
-
 #include <amqp.h>
 #include <amqp_framing.h>
 
index 53fa725e00786ba6dede47e748a76336c4e86b91..2c3a90436da56e17196bcdde7ed245ac575d03a9 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -30,7 +30,6 @@
 #include "configfile.h"
 
 #include "utils_dns.h"
-#include <pthread.h>
 #include <poll.h>
 
 #include <pcap.h>
index ea4e7850138060891d132f5e3a46ecc6ca2cd35d..8a1ac2e8491cff6fd9a0917c1983861bc6a67b1d 100644 (file)
 
 #include <stddef.h>
 
-#if HAVE_LIBPTHREAD
-# include <pthread.h>
-#endif
-
 #include <sys/un.h>
 #include <sys/select.h>
 
index 6d5908c05faedc03583bcad0d4434c3dc6ba7abb..cdaf79a0b04e741aee314aafb90921ff1fe0ef9b 100644 (file)
@@ -38,8 +38,6 @@
 #include <grp.h>
 #include <signal.h>
 
-#include <pthread.h>
-
 #define PL_NORMAL        0x01
 #define PL_NOTIF_ACTION  0x02
 
index 67e0406cd675644148cf3099b3c6cec379ca956d..53cdcbf519150913b9d906fbb5f122a3e302b613 100644 (file)
@@ -30,9 +30,6 @@
 #include "configfile.h"
 #include "utils_avltree.h"
 
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
 #if HAVE_NETDB_H
 # include <netdb.h>
 #endif
index 76dd9cbd540a4c842dfc0544daf7a8b9a650d74c..c3aa5587e48e231cadf7b7d2db6d741ab26b0daf 100644 (file)
@@ -28,8 +28,6 @@
 #include "plugin.h"
 #include "utils_ignorelist.h"
 
-#include <pthread.h>
-
 #include <OpenIPMI/ipmiif.h>
 #include <OpenIPMI/ipmi_err.h>
 #include <OpenIPMI/ipmi_posix.h>
index 4187e7c382d03c3658238e0b7aa65a34cd231bd1..01dc1b8ab006c48da164b6c2bc6ecde3b7b71668 100644 (file)
@@ -26,7 +26,6 @@
 #include "common.h"
 #include "filter_chain.h"
 
-#include <pthread.h>
 #include <jni.h>
 
 #if !defined(JNI_VERSION_1_2)
index 2d5f6203802852b0bf7174eaf0ab8c22bdf237a9..45aa86d174010339c08845bca72de6dbdeb3bad6 100644 (file)
@@ -31,7 +31,6 @@
 #include "plugin.h"
 
 #include <sys/types.h>
-#include <pthread.h>
 #include <yajl/yajl_common.h>
 #include <yajl/yajl_gen.h>
 #if HAVE_YAJL_YAJL_VERSION_H
index 11797182639e35902be3e431022f667d9eb99839..334226ba5ef3adaf27a87c3a2b1383c0180a2a15 100644 (file)
@@ -30,8 +30,6 @@
 #include "common.h"
 #include "plugin.h"
 
-#include <pthread.h>
-
 #define DEFAULT_LOGFILE LOCALSTATEDIR"/log/collectd.log"
 
 #if COLLECT_DEBUG
index 0b00bab860939ede191e8aa5a278bb7cce8d76f1..dbef915ae4d681ba4f634e3042df52defdc7c609 100644 (file)
@@ -36,8 +36,6 @@
 #include "utils_cache.h"
 #include "utils_complain.h"
 
-#include <pthread.h>
-
 #include <mosquitto.h>
 
 #define MQTT_MAX_TOPIC_SIZE         1024
index bf1f2ab6069f61a93443e607ef6821571b5691e3..219f163eadbac1030f5b8f652cf1eaf9090d11f8 100644 (file)
@@ -36,9 +36,6 @@
 
 #include "network.h"
 
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
 #if HAVE_NETDB_H
 # include <netdb.h>
 #endif
@@ -56,7 +53,6 @@
 #endif
 
 #if HAVE_LIBGCRYPT
-# include <pthread.h>
 # if defined __APPLE__
 /* default xcode compiler throws warnings even when deprecated functionality
  * is not used. -Werror breaks the build because of erroneous warnings.
index c77b2d19e1d6618c5d1bd431d9cba75c6085572e..0120a4039466e240c753ed3e7e2472995dec3335 100644 (file)
@@ -28,7 +28,6 @@
 
 #include <auth-client.h>
 #include <libesmtp.h>
-#include <pthread.h>
 
 #define MAXSTRING               256
 
index 17eb1b9abc347b79bafb42454aa38956960f43eb..a033e2f668503520eb8860fc8bf54f2354d803d3 100644 (file)
--- a/src/nut.c
+++ b/src/nut.c
@@ -28,7 +28,6 @@
 #include "common.h"
 #include "plugin.h"
 
-#include <pthread.h>
 #include <upsclient.h>
 
 #if HAVE_UPSCONN_T
index 16db312a3617ebf4467d0657fe81d8ef4fc16690..7d78630eb76de69e92c28b84ece8be95c57bf958 100644 (file)
@@ -63,8 +63,6 @@
 
 #include "filter_chain.h"
 
-#include <pthread.h>
-
 #if !defined(USE_ITHREADS)
 # error "Perl does not support ithreads!"
 #endif /* !defined(USE_ITHREADS) */
index 980fbf26eea2791333231c5acf362520d62728e2..cfc07774f5560e0fd12516e7642412e52d2fe9cc 100644 (file)
@@ -28,7 +28,6 @@
 #include "plugin.h"
 #include "configfile.h"
 
-#include <pthread.h>
 #include <netdb.h>
 #include <poll.h>
 
index 88661e94ba5a5e60c99281a9fffc26d6c3265849..e16ba07706b24a0eddee4c4a13a0d51d30bb6ef4 100644 (file)
@@ -30,7 +30,6 @@
 #include "configfile.h"
 #include "utils_complain.h"
 
-#include <pthread.h>
 #include <netinet/in.h>
 #if HAVE_NETDB_H
 # include <netdb.h> /* NI_MAXHOST */
index 759560e874dea71be320627da02d2bf7613e7946..41ce95cdf08b15f34cb7067d05a477c69c6a37da 100644 (file)
 #include "utils_db_query.h"
 #include "utils_complain.h"
 
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
-
 #include <pg_config_manual.h>
 #include <libpq-fe.h>
 
index 1ed6dc0165b0c5477b55d7c05f2f77eba8a8c261..61d464d82957ece7ac4300389dd077344404770e 100644 (file)
@@ -28,9 +28,6 @@
 #include <structmember.h>
 
 #include <signal.h>
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
 
 #include "collectd.h"
 #include "common.h"
index 919a8312b226d37649f7ad6e598b91788ca9c787..0814126cffab4a466e69b2993bfd519d0bbf7a7f 100644 (file)
@@ -25,7 +25,6 @@
 #include "plugin.h"
 #include "configfile.h"
 
-#include <pthread.h>
 #include <sys/time.h>
 #include <hiredis/hiredis.h>
 
index 3cd6d6bb6807b842407f79e5760c4708d78a9a0e..21b01d93568a8946f300443f28ac4bbeec9a0082 100644 (file)
 
 #include <rrd.h>
 
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
-
 /*
  * Private types
  */
index 6c781f81c50a56597be7cfa376a776158dcd687a..d8c65c08d39f6b3d8d25bd9794c3d2e57f506029 100644 (file)
@@ -27,7 +27,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
-#include <pthread.h>
 
 #include <glib.h>
 #include <libsigrok/libsigrok.h>
index 89cbc46016db0610e5e2e6f71f234b2eedcaa495..6a5bb8b964802af92ffad9d600e1255e2ed3a4d8 100644 (file)
@@ -29,8 +29,6 @@
 #include "plugin.h"
 #include "utils_complain.h"
 
-#include <pthread.h>
-
 #include <net-snmp/net-snmp-config.h>
 #include <net-snmp/net-snmp-includes.h>
 
index 3c0886186ceae8a1ca96e2629a06b1e3f2d5cebf..1819b3ea21437e28ee0d505b941e84243ffbdd76 100644 (file)
@@ -32,8 +32,6 @@
 #include "utils_complain.h"
 #include "utils_latency.h"
 
-#include <pthread.h>
-
 #include <sys/types.h>
 #include <netdb.h>
 #include <poll.h>
index e849b1d8b921fd2da5d7d1f3f98eaf20d7a07e2a..94a4f02449c06fb8093defef6ea2a1095e556352 100644 (file)
@@ -31,7 +31,6 @@
 #include "utils_threshold.h"
 
 #include <assert.h>
-#include <pthread.h>
 
 /*
  * Threshold management
index 1840e34c45a157825fd8a9b8052a1b56500480ca..d4bf004731abf3142253a9833a742004f48420a0 100644 (file)
@@ -36,9 +36,6 @@
 #include "utils_cmd_putval.h"
 #include "utils_cmd_putnotif.h"
 
-/* Folks without pthread will need to disable this plugin. */
-#include <pthread.h>
-
 #include <sys/stat.h>
 #include <sys/un.h>
 
index 0b8ab41c08bf10681c04987fd37c946c2dcb3a4c..5acda6e0994f738e1a8e42e3d2d3b59057a0ea8b 100644 (file)
@@ -51,9 +51,6 @@
 #include "utils_complain.h"
 #include "utils_format_graphite.h"
 
-/* Folks without pthread will need to disable this plugin. */
-#include <pthread.h>
-
 #include <netdb.h>
 
 #define WG_DEFAULT_NODE "localhost"
index 8dd37c45ad189e2dfbf4265410d37a5b96382bb6..779c94f659722811e240eccac0035e5c67e0ec51 100644 (file)
 #include "utils_cache.h"
 #include "utils_format_json.h"
 
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
-
 #include <curl/curl.h>
 
 #ifndef WRITE_HTTP_DEFAULT_BUFFER_SIZE
index 10ae5a578c7f651bba423100b8a5924ee9d8b6ee..e881593b65161e20af6b697dd122ca2e402829c0 100644 (file)
@@ -36,7 +36,6 @@
 
 #include <stdint.h>
 #include <librdkafka/rdkafka.h>
-#include <pthread.h>
 #include <zlib.h>
 #include <errno.h>
 
index ebf0e12445cc9e9e3900a8416c3cedcf6db1a9eb..db09849fefc75aa2691a8c663be40f885b63a0fb 100644 (file)
@@ -32,9 +32,6 @@
 
 #include "utils_format_graphite.h"
 
-/* Folks without pthread will need to disable this plugin. */
-#include <pthread.h>
-
 #include <netdb.h>
 
 #define WL_BUF_SIZE 8192
index 9a6fdf2697da4b52c7ba7d5fd5f8f39ed96c73c6..fb80ba28eeb7370b0c4689a07448da37522e6cc0 100644 (file)
@@ -34,8 +34,6 @@
 #include "configfile.h"
 #include "utils_cache.h"
 
-#include <pthread.h>
-
 #if HAVE_STDINT_H
 # define MONGO_HAVE_STDINT 1
 #else
index a79eb36bc517c479643ac0ebd3312b978f9d072d..5c299a489dfa6eef0f914992f595df1cf55c48ce 100644 (file)
@@ -29,7 +29,6 @@
 #include "common.h"
 #include "configfile.h"
 
-#include <pthread.h>
 #include <sys/time.h>
 #include <hiredis/hiredis.h>
 
index 2936dfa46f5ab91f158d3092baa164cdeab39140..ac4e9f58bf36bcd4070c66eab194d5a70d1df1f0 100644 (file)
@@ -30,7 +30,6 @@
 
 #include <riemann/riemann-client.h>
 #include <errno.h>
-#include <pthread.h>
 
 #include "collectd.h"
 #include "plugin.h"
index 475354c83bb0110c89b81dde3e85cb33a3203953..d37792b4f5e589ef5d764e3b571c4d87e4215692 100644 (file)
@@ -35,7 +35,6 @@
 #include <errno.h>
 #include <netdb.h>
 #include <inttypes.h>
-#include <pthread.h>
 #include <stddef.h>
 
 #include <stdlib.h>
index 46028ba161b558e357641577a3e2daff14b79cc2..2bd27072398541c124016f1c6e97fc8c26936726 100644 (file)
@@ -48,7 +48,6 @@
 
 #include "utils_cache.h"
 
-#include <pthread.h>
 #include <netdb.h>
 
 #ifndef WT_DEFAULT_NODE