summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d6890c7)
raw | patch | inline | side by side (parent: d6890c7)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 3 Jun 2016 15:44:58 +0000 (17:44 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 3 Jun 2016 15:44:58 +0000 (17:44 +0200) |
plugin.h already includes pthread.h
35 files changed:
diff --git a/src/aggregation.c b/src/aggregation.c
index 3d5f396aa53ad453db5e320b12a0b9f9c9e56d63..c4c1627af360ce463ba030cb64e80a4f6667b723 100644 (file)
--- a/src/aggregation.c
+++ b/src/aggregation.c
#include "collectd.h"
-#include <pthread.h>
-
#include "plugin.h"
#include "common.h"
#include "configfile.h"
diff --git a/src/amqp.c b/src/amqp.c
index fc69e936554a6418b7be9d05784c7bba798a2a13..99dca9014ac628254481ca9dc451eedc21ae564d 100644 (file)
--- a/src/amqp.c
+++ b/src/amqp.c
#include "utils_format_json.h"
#include "utils_format_graphite.h"
-#include <pthread.h>
-
#include <amqp.h>
#include <amqp_framing.h>
diff --git a/src/dns.c b/src/dns.c
index 53fa725e00786ba6dede47e748a76336c4e86b91..2c3a90436da56e17196bcdde7ed245ac575d03a9 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
#include "configfile.h"
#include "utils_dns.h"
-#include <pthread.h>
#include <poll.h>
#include <pcap.h>
diff --git a/src/email.c b/src/email.c
index ea4e7850138060891d132f5e3a46ecc6ca2cd35d..8a1ac2e8491cff6fd9a0917c1983861bc6a67b1d 100644 (file)
--- a/src/email.c
+++ b/src/email.c
#include <stddef.h>
-#if HAVE_LIBPTHREAD
-# include <pthread.h>
-#endif
-
#include <sys/un.h>
#include <sys/select.h>
diff --git a/src/exec.c b/src/exec.c
index 6d5908c05faedc03583bcad0d4434c3dc6ba7abb..cdaf79a0b04e741aee314aafb90921ff1fe0ef9b 100644 (file)
--- a/src/exec.c
+++ b/src/exec.c
#include <grp.h>
#include <signal.h>
-#include <pthread.h>
-
#define PL_NORMAL 0x01
#define PL_NOTIF_ACTION 0x02
diff --git a/src/gmond.c b/src/gmond.c
index 67e0406cd675644148cf3099b3c6cec379ca956d..53cdcbf519150913b9d906fbb5f122a3e302b613 100644 (file)
--- a/src/gmond.c
+++ b/src/gmond.c
#include "configfile.h"
#include "utils_avltree.h"
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
#if HAVE_NETDB_H
# include <netdb.h>
#endif
diff --git a/src/ipmi.c b/src/ipmi.c
index 76dd9cbd540a4c842dfc0544daf7a8b9a650d74c..c3aa5587e48e231cadf7b7d2db6d741ab26b0daf 100644 (file)
--- a/src/ipmi.c
+++ b/src/ipmi.c
#include "plugin.h"
#include "utils_ignorelist.h"
-#include <pthread.h>
-
#include <OpenIPMI/ipmiif.h>
#include <OpenIPMI/ipmi_err.h>
#include <OpenIPMI/ipmi_posix.h>
diff --git a/src/java.c b/src/java.c
index 4187e7c382d03c3658238e0b7aa65a34cd231bd1..01dc1b8ab006c48da164b6c2bc6ecde3b7b71668 100644 (file)
--- a/src/java.c
+++ b/src/java.c
#include "common.h"
#include "filter_chain.h"
-#include <pthread.h>
#include <jni.h>
#if !defined(JNI_VERSION_1_2)
diff --git a/src/log_logstash.c b/src/log_logstash.c
index 2d5f6203802852b0bf7174eaf0ab8c22bdf237a9..45aa86d174010339c08845bca72de6dbdeb3bad6 100644 (file)
--- a/src/log_logstash.c
+++ b/src/log_logstash.c
#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
diff --git a/src/logfile.c b/src/logfile.c
index 11797182639e35902be3e431022f667d9eb99839..334226ba5ef3adaf27a87c3a2b1383c0180a2a15 100644 (file)
--- a/src/logfile.c
+++ b/src/logfile.c
#include "common.h"
#include "plugin.h"
-#include <pthread.h>
-
#define DEFAULT_LOGFILE LOCALSTATEDIR"/log/collectd.log"
#if COLLECT_DEBUG
diff --git a/src/mqtt.c b/src/mqtt.c
index 0b00bab860939ede191e8aa5a278bb7cce8d76f1..dbef915ae4d681ba4f634e3042df52defdc7c609 100644 (file)
--- a/src/mqtt.c
+++ b/src/mqtt.c
#include "utils_cache.h"
#include "utils_complain.h"
-#include <pthread.h>
-
#include <mosquitto.h>
#define MQTT_MAX_TOPIC_SIZE 1024
diff --git a/src/network.c b/src/network.c
index bf1f2ab6069f61a93443e607ef6821571b5691e3..219f163eadbac1030f5b8f652cf1eaf9090d11f8 100644 (file)
--- a/src/network.c
+++ b/src/network.c
#include "network.h"
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
#if HAVE_NETDB_H
# include <netdb.h>
#endif
#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.
diff --git a/src/notify_email.c b/src/notify_email.c
index c77b2d19e1d6618c5d1bd431d9cba75c6085572e..0120a4039466e240c753ed3e7e2472995dec3335 100644 (file)
--- a/src/notify_email.c
+++ b/src/notify_email.c
#include <auth-client.h>
#include <libesmtp.h>
-#include <pthread.h>
#define MAXSTRING 256
diff --git a/src/nut.c b/src/nut.c
index 17eb1b9abc347b79bafb42454aa38956960f43eb..a033e2f668503520eb8860fc8bf54f2354d803d3 100644 (file)
--- a/src/nut.c
+++ b/src/nut.c
#include "common.h"
#include "plugin.h"
-#include <pthread.h>
#include <upsclient.h>
#if HAVE_UPSCONN_T
diff --git a/src/perl.c b/src/perl.c
index 16db312a3617ebf4467d0657fe81d8ef4fc16690..7d78630eb76de69e92c28b84ece8be95c57bf958 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
#include "filter_chain.h"
-#include <pthread.h>
-
#if !defined(USE_ITHREADS)
# error "Perl does not support ithreads!"
#endif /* !defined(USE_ITHREADS) */
diff --git a/src/pinba.c b/src/pinba.c
index 980fbf26eea2791333231c5acf362520d62728e2..cfc07774f5560e0fd12516e7642412e52d2fe9cc 100644 (file)
--- a/src/pinba.c
+++ b/src/pinba.c
#include "plugin.h"
#include "configfile.h"
-#include <pthread.h>
#include <netdb.h>
#include <poll.h>
diff --git a/src/ping.c b/src/ping.c
index 88661e94ba5a5e60c99281a9fffc26d6c3265849..e16ba07706b24a0eddee4c4a13a0d51d30bb6ef4 100644 (file)
--- a/src/ping.c
+++ b/src/ping.c
#include "configfile.h"
#include "utils_complain.h"
-#include <pthread.h>
#include <netinet/in.h>
#if HAVE_NETDB_H
# include <netdb.h> /* NI_MAXHOST */
diff --git a/src/postgresql.c b/src/postgresql.c
index 759560e874dea71be320627da02d2bf7613e7946..41ce95cdf08b15f34cb7067d05a477c69c6a37da 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
#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>
diff --git a/src/python.c b/src/python.c
index 1ed6dc0165b0c5477b55d7c05f2f77eba8a8c261..61d464d82957ece7ac4300389dd077344404770e 100644 (file)
--- a/src/python.c
+++ b/src/python.c
#include <structmember.h>
#include <signal.h>
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
#include "collectd.h"
#include "common.h"
diff --git a/src/redis.c b/src/redis.c
index 919a8312b226d37649f7ad6e598b91788ca9c787..0814126cffab4a466e69b2993bfd519d0bbf7a7f 100644 (file)
--- a/src/redis.c
+++ b/src/redis.c
#include "plugin.h"
#include "configfile.h"
-#include <pthread.h>
#include <sys/time.h>
#include <hiredis/hiredis.h>
diff --git a/src/rrdtool.c b/src/rrdtool.c
index 3cd6d6bb6807b842407f79e5760c4708d78a9a0e..21b01d93568a8946f300443f28ac4bbeec9a0082 100644 (file)
--- a/src/rrdtool.c
+++ b/src/rrdtool.c
#include <rrd.h>
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
-
/*
* Private types
*/
diff --git a/src/sigrok.c b/src/sigrok.c
index 6c781f81c50a56597be7cfa376a776158dcd687a..d8c65c08d39f6b3d8d25bd9794c3d2e57f506029 100644 (file)
--- a/src/sigrok.c
+++ b/src/sigrok.c
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <pthread.h>
#include <glib.h>
#include <libsigrok/libsigrok.h>
diff --git a/src/snmp.c b/src/snmp.c
index 89cbc46016db0610e5e2e6f71f234b2eedcaa495..6a5bb8b964802af92ffad9d600e1255e2ed3a4d8 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
#include "plugin.h"
#include "utils_complain.h"
-#include <pthread.h>
-
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
diff --git a/src/statsd.c b/src/statsd.c
index 3c0886186ceae8a1ca96e2629a06b1e3f2d5cebf..1819b3ea21437e28ee0d505b941e84243ffbdd76 100644 (file)
--- a/src/statsd.c
+++ b/src/statsd.c
#include "utils_complain.h"
#include "utils_latency.h"
-#include <pthread.h>
-
#include <sys/types.h>
#include <netdb.h>
#include <poll.h>
diff --git a/src/threshold.c b/src/threshold.c
index e849b1d8b921fd2da5d7d1f3f98eaf20d7a07e2a..94a4f02449c06fb8093defef6ea2a1095e556352 100644 (file)
--- a/src/threshold.c
+++ b/src/threshold.c
#include "utils_threshold.h"
#include <assert.h>
-#include <pthread.h>
/*
* Threshold management
diff --git a/src/unixsock.c b/src/unixsock.c
index 1840e34c45a157825fd8a9b8052a1b56500480ca..d4bf004731abf3142253a9833a742004f48420a0 100644 (file)
--- a/src/unixsock.c
+++ b/src/unixsock.c
#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>
diff --git a/src/write_graphite.c b/src/write_graphite.c
index 0b8ab41c08bf10681c04987fd37c946c2dcb3a4c..5acda6e0994f738e1a8e42e3d2d3b59057a0ea8b 100644 (file)
--- a/src/write_graphite.c
+++ b/src/write_graphite.c
#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"
diff --git a/src/write_http.c b/src/write_http.c
index 8dd37c45ad189e2dfbf4265410d37a5b96382bb6..779c94f659722811e240eccac0035e5c67e0ec51 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
#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
diff --git a/src/write_kafka.c b/src/write_kafka.c
index 10ae5a578c7f651bba423100b8a5924ee9d8b6ee..e881593b65161e20af6b697dd122ca2e402829c0 100644 (file)
--- a/src/write_kafka.c
+++ b/src/write_kafka.c
#include <stdint.h>
#include <librdkafka/rdkafka.h>
-#include <pthread.h>
#include <zlib.h>
#include <errno.h>
diff --git a/src/write_log.c b/src/write_log.c
index ebf0e12445cc9e9e3900a8416c3cedcf6db1a9eb..db09849fefc75aa2691a8c663be40f885b63a0fb 100644 (file)
--- a/src/write_log.c
+++ b/src/write_log.c
#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
diff --git a/src/write_mongodb.c b/src/write_mongodb.c
index 9a6fdf2697da4b52c7ba7d5fd5f8f39ed96c73c6..fb80ba28eeb7370b0c4689a07448da37522e6cc0 100644 (file)
--- a/src/write_mongodb.c
+++ b/src/write_mongodb.c
#include "configfile.h"
#include "utils_cache.h"
-#include <pthread.h>
-
#if HAVE_STDINT_H
# define MONGO_HAVE_STDINT 1
#else
diff --git a/src/write_redis.c b/src/write_redis.c
index a79eb36bc517c479643ac0ebd3312b978f9d072d..5c299a489dfa6eef0f914992f595df1cf55c48ce 100644 (file)
--- a/src/write_redis.c
+++ b/src/write_redis.c
#include "common.h"
#include "configfile.h"
-#include <pthread.h>
#include <sys/time.h>
#include <hiredis/hiredis.h>
diff --git a/src/write_riemann.c b/src/write_riemann.c
index 2936dfa46f5ab91f158d3092baa164cdeab39140..ac4e9f58bf36bcd4070c66eab194d5a70d1df1f0 100644 (file)
--- a/src/write_riemann.c
+++ b/src/write_riemann.c
#include <riemann/riemann-client.h>
#include <errno.h>
-#include <pthread.h>
#include "collectd.h"
#include "plugin.h"
diff --git a/src/write_sensu.c b/src/write_sensu.c
index 475354c83bb0110c89b81dde3e85cb33a3203953..d37792b4f5e589ef5d764e3b571c4d87e4215692 100644 (file)
--- a/src/write_sensu.c
+++ b/src/write_sensu.c
#include <errno.h>
#include <netdb.h>
#include <inttypes.h>
-#include <pthread.h>
#include <stddef.h>
#include <stdlib.h>
diff --git a/src/write_tsdb.c b/src/write_tsdb.c
index 46028ba161b558e357641577a3e2daff14b79cc2..2bd27072398541c124016f1c6e97fc8c26936726 100644 (file)
--- a/src/write_tsdb.c
+++ b/src/write_tsdb.c
#include "utils_cache.h"
-#include <pthread.h>
#include <netdb.h>
#ifndef WT_DEFAULT_NODE