From: Sebastian Harl Date: Sun, 23 Feb 2014 20:35:33 +0000 (-0800) Subject: Include config.h in source files. X-Git-Tag: sysdb-0.1.0~182 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=39a45905e0b237e458b1826ff9b4fad1c4a59550;p=sysdb.git Include config.h in source files. Else, we don't get any definitions required for enforcing standard compliance. --- diff --git a/src/backend/collectd/unixsock.c b/src/backend/collectd/unixsock.c index 766bbce..1ea0f0d 100644 --- a/src/backend/collectd/unixsock.c +++ b/src/backend/collectd/unixsock.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "sysdb.h" #include "core/plugin.h" #include "core/store.h" diff --git a/src/backend/mk-livestatus.c b/src/backend/mk-livestatus.c index bf45da6..c77951a 100644 --- a/src/backend/mk-livestatus.c +++ b/src/backend/mk-livestatus.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "sysdb.h" #include "core/plugin.h" #include "core/store.h" diff --git a/src/client/sock.c b/src/client/sock.c index fd18a1e..6337ee6 100644 --- a/src/client/sock.c +++ b/src/client/sock.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "client/sock.h" #include "utils/error.h" #include "utils/strbuf.h" diff --git a/src/core/data.c b/src/core/data.c index b990f39..4e0fd77 100644 --- a/src/core/data.c +++ b/src/core/data.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "core/data.h" #include diff --git a/src/core/object.c b/src/core/object.c index bcefadb..9d10f98 100644 --- a/src/core/object.c +++ b/src/core/object.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "core/object.h" #include diff --git a/src/core/plugin.c b/src/core/plugin.c index a3aba99..559e6eb 100644 --- a/src/core/plugin.c +++ b/src/core/plugin.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "sysdb.h" #include "core/plugin.h" #include "core/time.h" diff --git a/src/core/store.c b/src/core/store.c index 22e177c..47ba035 100644 --- a/src/core/store.c +++ b/src/core/store.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "sysdb.h" #include "core/store-private.h" #include "core/plugin.h" diff --git a/src/core/store_lookup.c b/src/core/store_lookup.c index d4fef03..d4a3d6c 100644 --- a/src/core/store_lookup.c +++ b/src/core/store_lookup.c @@ -31,6 +31,10 @@ * simple full table scan is supported only. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "sysdb.h" #include "core/store-private.h" #include "core/object.h" diff --git a/src/core/time.c b/src/core/time.c index 3baf224..877feb1 100644 --- a/src/core/time.c +++ b/src/core/time.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "core/time.h" #include diff --git a/src/frontend/scanner.l b/src/frontend/scanner.l index 948b6ba..6c2bfa1 100644 --- a/src/frontend/scanner.l +++ b/src/frontend/scanner.l @@ -27,6 +27,10 @@ %{ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "frontend/connection.h" #include "frontend/parser.h" #include "frontend/grammar.h" diff --git a/src/frontend/session.c b/src/frontend/session.c index a64931e..2b568b1 100644 --- a/src/frontend/session.c +++ b/src/frontend/session.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "sysdb.h" #include "frontend/connection-private.h" diff --git a/src/frontend/sock.c b/src/frontend/sock.c index aa7cab0..3b97994 100644 --- a/src/frontend/sock.c +++ b/src/frontend/sock.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "sysdb.h" #include "core/object.h" #include "frontend/connection-private.h" diff --git a/src/liboconfig/oconfig.c b/src/liboconfig/oconfig.c index 1f7093d..af11ad6 100644 --- a/src/liboconfig/oconfig.c +++ b/src/liboconfig/oconfig.c @@ -16,6 +16,10 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include #include #include diff --git a/src/liboconfig/parser.y b/src/liboconfig/parser.y index 469509d..6f40df3 100644 --- a/src/liboconfig/parser.y +++ b/src/liboconfig/parser.y @@ -17,6 +17,10 @@ */ %{ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include #include #include "oconfig.h" diff --git a/src/plugins/cname/dns.c b/src/plugins/cname/dns.c index 6f5d518..26b3500 100644 --- a/src/plugins/cname/dns.c +++ b/src/plugins/cname/dns.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "sysdb.h" #include "core/plugin.h" #include "utils/error.h" diff --git a/src/tools/sysdb/scanner.l b/src/tools/sysdb/scanner.l index ba5d3b1..4d9fea5 100644 --- a/src/tools/sysdb/scanner.l +++ b/src/tools/sysdb/scanner.l @@ -32,6 +32,10 @@ * find queries (terminated by semicolon). */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "tools/sysdb/input.h" #include diff --git a/src/tools/sysdbd/configfile.c b/src/tools/sysdbd/configfile.c index 9c7308d..9579d91 100644 --- a/src/tools/sysdbd/configfile.c +++ b/src/tools/sysdbd/configfile.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "tools/sysdbd/configfile.h" #include "sysdb.h" diff --git a/src/utils/channel.c b/src/utils/channel.c index a45247a..7c5c002 100644 --- a/src/utils/channel.c +++ b/src/utils/channel.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "utils/channel.h" #include diff --git a/src/utils/dbi.c b/src/utils/dbi.c index a30f548..a2569f7 100644 --- a/src/utils/dbi.c +++ b/src/utils/dbi.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "utils/dbi.h" #include "utils/error.h" diff --git a/src/utils/error.c b/src/utils/error.c index 6bf64c2..f40e31a 100644 --- a/src/utils/error.c +++ b/src/utils/error.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "utils/error.h" #include "utils/strbuf.h" diff --git a/src/utils/llist.c b/src/utils/llist.c index 401a4ba..2dc7781 100644 --- a/src/utils/llist.c +++ b/src/utils/llist.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "utils/llist.h" #include diff --git a/src/utils/unixsock.c b/src/utils/unixsock.c index 9a5c3fa..1a4373a 100644 --- a/src/utils/unixsock.c +++ b/src/utils/unixsock.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "utils/error.h" #include "utils/unixsock.h" diff --git a/t/libsysdb_net_test.c b/t/libsysdb_net_test.c index 320cfac..85ec83c 100644 --- a/t/libsysdb_net_test.c +++ b/t/libsysdb_net_test.c @@ -29,6 +29,10 @@ * testing component involving networking operations */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "libsysdb_test.h" #include diff --git a/t/libsysdb_test.c b/t/libsysdb_test.c index 3cc6d89..8e5f2f4 100644 --- a/t/libsysdb_test.c +++ b/t/libsysdb_test.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "libsysdb_test.h" #include diff --git a/t/libsysdb_test.h b/t/libsysdb_test.h index e0765c0..9d28fa0 100644 --- a/t/libsysdb_test.h +++ b/t/libsysdb_test.h @@ -28,8 +28,6 @@ #ifndef T_LIBSYSDB_H #define T_LIBSYSDB_H 1 -#include "config.h" - #include "sysdb.h" #include "core/object.h" diff --git a/t/utils/dbi_test.c b/t/utils/dbi_test.c index c54ea31..9d45feb 100644 --- a/t/utils/dbi_test.c +++ b/t/utils/dbi_test.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + #include "libsysdb_test.h" #include "utils/dbi.h" diff --git a/t/utils/unixsock_test.c b/t/utils/unixsock_test.c index 0122d5f..4f1e042 100644 --- a/t/utils/unixsock_test.c +++ b/t/utils/unixsock_test.c @@ -25,6 +25,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + /* required for fopencookie support */ #define _GNU_SOURCE