Code

Include config.h in source files.
authorSebastian Harl <sh@tokkee.org>
Sun, 23 Feb 2014 20:35:33 +0000 (12:35 -0800)
committerSebastian Harl <sh@tokkee.org>
Sun, 23 Feb 2014 20:35:33 +0000 (12:35 -0800)
Else, we don't get any definitions required for enforcing standard compliance.

27 files changed:
src/backend/collectd/unixsock.c
src/backend/mk-livestatus.c
src/client/sock.c
src/core/data.c
src/core/object.c
src/core/plugin.c
src/core/store.c
src/core/store_lookup.c
src/core/time.c
src/frontend/scanner.l
src/frontend/session.c
src/frontend/sock.c
src/liboconfig/oconfig.c
src/liboconfig/parser.y
src/plugins/cname/dns.c
src/tools/sysdb/scanner.l
src/tools/sysdbd/configfile.c
src/utils/channel.c
src/utils/dbi.c
src/utils/error.c
src/utils/llist.c
src/utils/unixsock.c
t/libsysdb_net_test.c
t/libsysdb_test.c
t/libsysdb_test.h
t/utils/dbi_test.c
t/utils/unixsock_test.c

index 766bbce9f78bc4297890b5e7749cbbc4f494f407..1ea0f0d2000816521eaab1ca43131f45af52e564 100644 (file)
  * 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"
index bf45da6fdd35df6d3170ed4a4ebafbc1b513b49a..c77951a20246ba7a3e2d4a8a8474cac5900eded4 100644 (file)
  * 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"
index fd18a1efc689c331df0740feab0f1d4e2a9d3e86..6337ee6bf8cd8bf71611a42469b55527b7b84ff8 100644 (file)
  * 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"
index b990f397013ece515a90cad2ee634039a9863d37..4e0fd779580f9dd734bf1211dc2769ca326a179f 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "core/data.h"
 
 #include <inttypes.h>
index bcefadbc9911570e837867213d843179a6579de8..9d10f9831720ba8eaf310d3f83227c8572025df1 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "core/object.h"
 
 #include <assert.h>
index a3aba99ed40b70b05cb91be314c7ac434eeb58a6..559e6eb4d7db1aa803a55783025d2dc4a8ee6afb 100644 (file)
  * 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"
index 22e177ca8f95d4a1246f443b73f0457f48678f2f..47ba0356933453d4aa0c061daf23a6d3ad4a727c 100644 (file)
  * 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"
index d4fef03c39edc9015e37af5ad526d3e80b36c479..d4a3d6cccb83ba3612416faec7edd3b03995dedc 100644 (file)
  * 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"
index 3baf2240cb30b5197d02e601275617d6f67c6bd2..877feb1de9cfe95824063b46e64c5a28b8445680 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "core/time.h"
 
 #include <time.h>
index 948b6badf155e848c5182ad1ca38f8004a49eb3f..6c2bfa148fd802ff4365187015d7636895af86bf 100644 (file)
 
 %{
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "frontend/connection.h"
 #include "frontend/parser.h"
 #include "frontend/grammar.h"
index a64931eeca6f795075b09322cea6ac4c8b5bd1ff..2b568b1948ee5366df066a1d2217ff48a1ba23bc 100644 (file)
  * 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"
index aa7cab068b115d07d2008eceb78347b99c5c19cd..3b9799496df8bf1e70d501393e36b91de0ebd86e 100644 (file)
  * 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"
index 1f7093d334eb20de7420307c9225f4b6f0d8eb6a..af11ad6c09fb9fafef5fdfd5fab11b6f7df79e76 100644 (file)
  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
index 469509d594d4bb1f80d611a0bed6ea7a7e66fce0..6f40df396c322e32e5dad24c96bff7820d87ad5d 100644 (file)
  */
 
 %{
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdlib.h>
 #include <string.h>
 #include "oconfig.h"
index 6f5d518c5c3b5b0645ff5dd4e82141239d23eb68..26b3500e004ad51ec8e636791659278e62a2b8a9 100644 (file)
  * 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"
index ba5d3b1b57313ca5e1e88cacd1e059e6f127a4f7..4d9fea5bc6c1f501371739a40f09a4ebd017b40a 100644 (file)
  * find queries (terminated by semicolon).
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "tools/sysdb/input.h"
 
 #include <string.h>
index 9c7308d1bc2d0c1bd8efd172f128922c2193db61..9579d91e45cf02b8241302f3bb52dbfd56de996f 100644 (file)
  * 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"
index a45247a71060503b55589655e2cd6711dd1bcd7f..7c5c002ae545f43901e5b9dab352329936218b67 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "utils/channel.h"
 
 #include <assert.h>
index a30f548db2c6661242970d5db6c639b93aa480c8..a2569f7faac01a92b66eb211c3bb543bd2eb0736 100644 (file)
  * 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"
 
index 6bf64c2a25983347142d8e591b9d1fcee67460b7..f40e31ada656f24e4719783bbe279cf49cfb7be2 100644 (file)
  * 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"
 
index 401a4ba5d92280901c5782e48cda24443842cd98..2dc7781cccab7f2ca8decd373461ae7e42999d0b 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "utils/llist.h"
 
 #include <assert.h>
index 9a5c3fab8c91de6c510a99d8740e4ae2301e0a01..1a4373abb4ee92bc38b0cb23982f36d93b61f490 100644 (file)
  * 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"
 
index 320cfac2d5a466256926aae55c4d01505a32d7dd..85ec83c9efb675aae909e6134b2637ee2798fae8 100644 (file)
  * testing component involving networking operations
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "libsysdb_test.h"
 
 #include <check.h>
index 3cc6d89ac94d118b802580bfe97cd37ed00e9331..8e5f2f4b23249625547e05feac44d819acbabb69 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "libsysdb_test.h"
 
 #include <check.h>
index e0765c0eb64dbdd8c2a8be7a7385dc6e8b733fb7..9d28fa0d229b4b951064209ceb9c24aa73d0d111 100644 (file)
@@ -28,8 +28,6 @@
 #ifndef T_LIBSYSDB_H
 #define T_LIBSYSDB_H 1
 
-#include "config.h"
-
 #include "sysdb.h"
 #include "core/object.h"
 
index c54ea3164dec8b965bb16a4d64368bbac6b3b694..9d45feb24341f03235223d2b2f8fe68d6ace0d3a 100644 (file)
  * 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"
 
index 0122d5f80316a5f3e45eee442e80022901365cf2..4f1e0429e67ca338156597183fe2f6942b28bbcb 100644 (file)
  * 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