There's a much better way of doing that: pass "-include" to the compiler. ---
First of all: I know this should be split :-) I always found weird to include these 3 lines on every single file. There's a much easier way to do this that I find more convenient. If project is insterested in this I can split it later, otherwise I only wast some jiffies of my life with the sed script. Makefile.am | 2 ++ client/main.c | 4 ---- gdbus/mainloop.c | 4 ---- gdbus/object.c | 4 ---- gdbus/polkit.c | 4 ---- gdbus/watch.c | 4 ---- gdhcp/client.c | 4 ---- gdhcp/common.c | 4 ---- gdhcp/server.c | 4 ---- gsupplicant/dbus.c | 4 ---- gsupplicant/supplicant.c | 4 ---- gweb/giognutls.c | 4 ---- gweb/gionotls.c | 4 ---- gweb/gresolv.c | 4 ---- gweb/gweb.c | 4 ---- plugins/bluetooth.c | 4 ---- plugins/dundee.c | 4 ---- plugins/ethernet.c | 4 ---- plugins/hh2serial-gps.c | 4 ---- plugins/iospm.c | 4 ---- plugins/iwmx.c | 4 ---- plugins/iwmxsdk.c | 4 ---- plugins/l2tp.c | 4 ---- plugins/loopback.c | 4 ---- plugins/nmcompat.c | 4 ---- plugins/ofono.c | 4 ---- plugins/openconnect.c | 4 ---- plugins/openvpn.c | 4 ---- plugins/pacrunner.c | 4 ---- plugins/polkit.c | 4 ---- plugins/pptp.c | 4 ---- plugins/tist.c | 4 ---- plugins/vpn.c | 4 ---- plugins/vpnc.c | 4 ---- plugins/wifi.c | 4 ---- scripts/libppp-plugin.c | 4 ---- scripts/openconnect-script.c | 4 ---- scripts/openvpn-script.c | 4 ---- src/6to4.c | 4 ---- src/agent.c | 4 ---- src/bridge.c | 4 ---- src/clock.c | 4 ---- src/config.c | 4 ---- src/connection.c | 4 ---- src/counter.c | 4 ---- src/dbus.c | 4 ---- src/detect.c | 4 ---- src/device.c | 4 ---- src/dhcp.c | 3 --- src/dhcpv6.c | 3 --- src/dnsproxy.c | 4 ---- src/error.c | 4 ---- src/inet.c | 4 ---- src/ipconfig.c | 4 ---- src/ippool.c | 4 ---- src/iptables.c | 4 ---- src/log.c | 4 ---- src/main.c | 4 ---- src/manager.c | 4 ---- src/nat.c | 4 ---- src/network.c | 4 ---- src/notifier.c | 4 ---- src/ntp.c | 4 ---- src/plugin.c | 4 ---- src/provider.c | 4 ---- src/proxy.c | 4 ---- src/resolver.c | 4 ---- src/rfkill.c | 4 ---- src/rtnl.c | 4 ---- src/service.c | 4 ---- src/session.c | 4 ---- src/stats.c | 4 ---- src/storage.c | 4 ---- src/task.c | 4 ---- src/technology.c | 4 ---- src/tethering.c | 4 ---- src/timeserver.c | 4 ---- src/timezone.c | 4 ---- src/utsname.c | 4 ---- src/wispr.c | 4 ---- src/wpad.c | 4 ---- tools/addr-test.c | 4 ---- tools/dbus-test.c | 4 ---- tools/dhcp-server-test.c | 4 ---- tools/dhcp-test.c | 4 ---- tools/polkit-test.c | 4 ---- tools/resolv-test.c | 4 ---- tools/stats-tool.c | 4 ---- tools/supplicant-dbus.c | 4 ---- tools/supplicant-test.c | 4 ---- tools/supplicant.c | 4 ---- tools/tap-test.c | 4 ---- tools/web-test.c | 4 ---- tools/wispr.c | 4 ---- tools/wpad-test.c | 4 ---- unit/manager-api.c | 4 ---- unit/session-api.c | 4 ---- unit/test-ippool.c | 4 ---- unit/test-nat.c | 4 ---- unit/test-session.c | 4 ---- unit/utils.c | 4 ---- 101 files changed, 2 insertions(+), 398 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9d713ae..f5d1f32 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,8 @@ AM_MAKEFLAGS = --no-print-directory +AM_CPPFLAGS = -include $(top_builddir)/config.h + includedir = @includedir@/connman include_HEADERS = include/types.h include/log.h include/plugin.h \ diff --git a/client/main.c b/client/main.c index 4a88d6e..859cdb7 100644 --- a/client/main.c +++ b/client/main.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <errno.h> #include <stdlib.h> diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c index cff326f..fe34bc5 100644 --- a/gdbus/mainloop.c +++ b/gdbus/mainloop.c @@ -21,10 +21,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glib.h> #include <dbus/dbus.h> diff --git a/gdbus/object.c b/gdbus/object.c index 900e7ab..66a470d 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -21,10 +21,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <string.h> diff --git a/gdbus/polkit.c b/gdbus/polkit.c index 9e95fa3..508937d 100644 --- a/gdbus/polkit.c +++ b/gdbus/polkit.c @@ -21,10 +21,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <dbus/dbus.h> diff --git a/gdbus/watch.c b/gdbus/watch.c index d749176..2b0cead 100644 --- a/gdbus/watch.c +++ b/gdbus/watch.c @@ -21,10 +21,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <string.h> diff --git a/gdhcp/client.c b/gdhcp/client.c index ec1b2a2..cf4fa2f 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <stdio.h> #include <errno.h> diff --git a/gdhcp/common.c b/gdhcp/common.c index 8d5c284..5f1aec8 100644 --- a/gdhcp/common.c +++ b/gdhcp/common.c @@ -18,10 +18,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <errno.h> diff --git a/gdhcp/server.c b/gdhcp/server.c index a342985..5ebed8d 100644 --- a/gdhcp/server.c +++ b/gdhcp/server.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <errno.h> #include <unistd.h> diff --git a/gsupplicant/dbus.c b/gsupplicant/dbus.c index 0da5fbd..b1c4009 100644 --- a/gsupplicant/dbus.c +++ b/gsupplicant/dbus.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdlib.h> #include <string.h> diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index dffc1d8..ada828c 100644 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdio.h> #include <stdlib.h> diff --git a/gweb/giognutls.c b/gweb/giognutls.c index 47ff8c4..d0f96df 100644 --- a/gweb/giognutls.c +++ b/gweb/giognutls.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <errno.h> #include <fcntl.h> diff --git a/gweb/gionotls.c b/gweb/gionotls.c index 88db3e4..ad42266 100644 --- a/gweb/gionotls.c +++ b/gweb/gionotls.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "giognutls.h" gboolean g_io_channel_supports_tls(void) diff --git a/gweb/gresolv.c b/gweb/gresolv.c index e93bf4f..9c83ac7 100644 --- a/gweb/gresolv.c +++ b/gweb/gresolv.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <unistd.h> #include <stdarg.h> diff --git a/gweb/gweb.c b/gweb/gweb.c index 27ed634..2ede236 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <errno.h> #include <fcntl.h> diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 6f476e2..77e0320 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <errno.h> #include <stdlib.h> diff --git a/plugins/dundee.c b/plugins/dundee.c index d0ecdef..939b102 100644 --- a/plugins/dundee.c +++ b/plugins/dundee.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <string.h> #include <errno.h> diff --git a/plugins/ethernet.c b/plugins/ethernet.c index fbfff63..93a1ff8 100644 --- a/plugins/ethernet.c +++ b/plugins/ethernet.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <net/if.h> diff --git a/plugins/hh2serial-gps.c b/plugins/hh2serial-gps.c index 20521b0..8179f06 100644 --- a/plugins/hh2serial-gps.c +++ b/plugins/hh2serial-gps.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <errno.h> diff --git a/plugins/iospm.c b/plugins/iospm.c index 1ea56a9..e1257dd 100644 --- a/plugins/iospm.c +++ b/plugins/iospm.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define CONNMAN_API_SUBJECT_TO_CHANGE #include <connman/plugin.h> #include <connman/notifier.h> diff --git a/plugins/iwmx.c b/plugins/iwmx.c index 7c1e792..c54b902 100644 --- a/plugins/iwmx.c +++ b/plugins/iwmx.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <errno.h> #include <string.h> diff --git a/plugins/iwmxsdk.c b/plugins/iwmxsdk.c index 06de4c3..21449c5 100644 --- a/plugins/iwmxsdk.c +++ b/plugins/iwmxsdk.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <errno.h> diff --git a/plugins/l2tp.c b/plugins/l2tp.c index 5a655e6..7cf41bc 100644 --- a/plugins/l2tp.c +++ b/plugins/l2tp.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <string.h> #include <errno.h> #include <unistd.h> diff --git a/plugins/loopback.c b/plugins/loopback.c index a111eee..155bdd0 100644 --- a/plugins/loopback.c +++ b/plugins/loopback.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <unistd.h> #include <limits.h> diff --git a/plugins/nmcompat.c b/plugins/nmcompat.c index 400389b..65637d0 100644 --- a/plugins/nmcompat.c +++ b/plugins/nmcompat.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gdbus.h> #define CONNMAN_API_SUBJECT_TO_CHANGE diff --git a/plugins/ofono.c b/plugins/ofono.c index d9696d7..0ef1296 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -21,10 +21,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdlib.h> diff --git a/plugins/openconnect.c b/plugins/openconnect.c index 70be7ae..8262c20 100644 --- a/plugins/openconnect.c +++ b/plugins/openconnect.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdlib.h> #include <string.h> #include <errno.h> diff --git a/plugins/openvpn.c b/plugins/openvpn.c index 8df8a3f..17c0919 100644 --- a/plugins/openvpn.c +++ b/plugins/openvpn.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <string.h> #include <errno.h> #include <unistd.h> diff --git a/plugins/pacrunner.c b/plugins/pacrunner.c index 418dce2..c985285 100644 --- a/plugins/pacrunner.c +++ b/plugins/pacrunner.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <string.h> diff --git a/plugins/polkit.c b/plugins/polkit.c index ae38364..3d6f8c1 100644 --- a/plugins/polkit.c +++ b/plugins/polkit.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gdbus.h> #define CONNMAN_API_SUBJECT_TO_CHANGE diff --git a/plugins/pptp.c b/plugins/pptp.c index 9db1b89..46e51c6 100644 --- a/plugins/pptp.c +++ b/plugins/pptp.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <string.h> #include <errno.h> #include <unistd.h> diff --git a/plugins/tist.c b/plugins/tist.c index 4d3561e..de31eed 100644 --- a/plugins/tist.c +++ b/plugins/tist.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> diff --git a/plugins/vpn.c b/plugins/vpn.c index 165c325..66dd7a6 100644 --- a/plugins/vpn.c +++ b/plugins/vpn.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <string.h> #include <fcntl.h> diff --git a/plugins/vpnc.c b/plugins/vpnc.c index fea1c15..2c61706 100644 --- a/plugins/vpnc.c +++ b/plugins/vpnc.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <string.h> #include <errno.h> #include <unistd.h> diff --git a/plugins/wifi.c b/plugins/wifi.c index c0f7ddc..f068e65 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <unistd.h> #include <stdlib.h> #include <errno.h> diff --git a/scripts/libppp-plugin.c b/scripts/libppp-plugin.c index e77b8cc..fea2f85 100644 --- a/scripts/libppp-plugin.c +++ b/scripts/libppp-plugin.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/scripts/openconnect-script.c b/scripts/openconnect-script.c index ef81c94..798ad51 100644 --- a/scripts/openconnect-script.c +++ b/scripts/openconnect-script.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/scripts/openvpn-script.c b/scripts/openvpn-script.c index 3d46384..2bff32a 100644 --- a/scripts/openvpn-script.c +++ b/scripts/openvpn-script.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/src/6to4.c b/src/6to4.c index 340b69e..23e7598 100644 --- a/src/6to4.c +++ b/src/6to4.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdio.h> #include <stdlib.h> diff --git a/src/agent.c b/src/agent.c index 7aaf304..b1f62db 100644 --- a/src/agent.c +++ b/src/agent.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdlib.h> #include <string.h> diff --git a/src/bridge.c b/src/bridge.c index 2849ef7..a2c78d1 100644 --- a/src/bridge.c +++ b/src/bridge.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <sys/types.h> #include <sys/stat.h> diff --git a/src/clock.c b/src/clock.c index e2cc19f..35a2f30 100644 --- a/src/clock.c +++ b/src/clock.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <sys/time.h> #include <gdbus.h> diff --git a/src/config.c b/src/config.c index 5363dc3..ca45711 100644 --- a/src/config.c +++ b/src/config.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdio.h> #include <unistd.h> diff --git a/src/connection.c b/src/connection.c index d40f428..c0a285e 100644 --- a/src/connection.c +++ b/src/connection.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <string.h> #include <net/if.h> diff --git a/src/counter.c b/src/counter.c index 1dd7d6d..27ece9b 100644 --- a/src/counter.c +++ b/src/counter.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <gdbus.h> diff --git a/src/dbus.c b/src/dbus.c index 38a6b92..a4bcb57 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <string.h> #include <gdbus.h> diff --git a/src/detect.c b/src/detect.c index f4b5d29..061f320 100644 --- a/src/detect.c +++ b/src/detect.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glib.h> #include "connman.h" diff --git a/src/device.c b/src/device.c index 75fa7f7..14ad1fa 100644 --- a/src/device.c +++ b/src/device.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <string.h> diff --git a/src/dhcp.c b/src/dhcp.c index 3425b6d..7d45d50 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -19,9 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif #include <stdio.h> #include <errno.h> #include <string.h> diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 574b19e..b641634 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -19,9 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif #include <stdio.h> #include <errno.h> #include <string.h> diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 82c5c1f..ca3836e 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdlib.h> #include <unistd.h> diff --git a/src/error.c b/src/error.c index c414469..1c218b5 100644 --- a/src/error.c +++ b/src/error.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <string.h> diff --git a/src/inet.c b/src/inet.c index c28c3e4..4c81314 100644 --- a/src/inet.c +++ b/src/inet.c @@ -21,10 +21,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <stdio.h> #include <errno.h> diff --git a/src/ipconfig.c b/src/ipconfig.c index 5e34ac0..5c7c574 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdio.h> #include <net/if.h> diff --git a/src/ippool.c b/src/ippool.c index 52446ce..f884fb6 100644 --- a/src/ippool.c +++ b/src/ippool.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <getopt.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/iptables.c b/src/iptables.c index 531e933..0baf2e7 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <getopt.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/log.c b/src/log.c index 96d9505..6df43a4 100644 --- a/src/log.c +++ b/src/log.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <stdio.h> #include <unistd.h> diff --git a/src/main.c b/src/main.c index 202e266..15f02ed 100644 --- a/src/main.c +++ b/src/main.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdio.h> #include <stdlib.h> diff --git a/src/manager.c b/src/manager.c index 1bf9189..c757863 100644 --- a/src/manager.c +++ b/src/manager.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <gdbus.h> diff --git a/src/nat.c b/src/nat.c index e17a3f8..c99c503 100644 --- a/src/nat.c +++ b/src/nat.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdio.h> diff --git a/src/network.c b/src/network.c index bf01767..e1519a6 100644 --- a/src/network.c +++ b/src/network.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <string.h> diff --git a/src/notifier.c b/src/notifier.c index b328a2a..19323d2 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gdbus.h> #include "connman.h" diff --git a/src/ntp.c b/src/ntp.c index 91a8832..f8c1243 100644 --- a/src/ntp.c +++ b/src/ntp.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <errno.h> #include <fcntl.h> diff --git a/src/plugin.c b/src/plugin.c index 65e0311..3b71a31 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <dlfcn.h> #include <glib.h> diff --git a/src/provider.c b/src/provider.c index 3f4bb1c..1c76209 100644 --- a/src/provider.c +++ b/src/provider.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdio.h> #include <string.h> diff --git a/src/proxy.c b/src/proxy.c index fd58a70..3120665 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glib.h> #include "connman.h" diff --git a/src/resolver.c b/src/resolver.c index a9d1341..cf16b56 100644 --- a/src/resolver.c +++ b/src/resolver.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <stdio.h> #include <errno.h> diff --git a/src/rfkill.c b/src/rfkill.c index 77c5b92..4629f10 100644 --- a/src/rfkill.c +++ b/src/rfkill.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <stdio.h> #include <errno.h> diff --git a/src/rtnl.c b/src/rtnl.c index 4e7ef4d..827ba11 100644 --- a/src/rtnl.c +++ b/src/rtnl.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdio.h> #include <unistd.h> diff --git a/src/service.c b/src/service.c index fdd59d5..fc99563 100644 --- a/src/service.c +++ b/src/service.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdio.h> #include <string.h> diff --git a/src/session.c b/src/session.c index a5db7ad..c7a8ce9 100644 --- a/src/session.c +++ b/src/session.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <gdbus.h> diff --git a/src/stats.c b/src/stats.c index 828c1ef..7fd0d38 100644 --- a/src/stats.c +++ b/src/stats.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <errno.h> #include <sys/mman.h> diff --git a/src/storage.c b/src/storage.c index 47bd0cb..0edb83b 100644 --- a/src/storage.c +++ b/src/storage.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <unistd.h> #include <sys/stat.h> diff --git a/src/task.c b/src/task.c index 97de7e3..ec42f83 100644 --- a/src/task.c +++ b/src/task.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <unistd.h> #include <stdarg.h> diff --git a/src/technology.c b/src/technology.c index 6d020cb..8c566aa 100644 --- a/src/technology.c +++ b/src/technology.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <string.h> diff --git a/src/tethering.c b/src/tethering.c index 265408b..d8edf54 100644 --- a/src/tethering.c +++ b/src/tethering.c @@ -20,10 +20,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <sys/types.h> #include <sys/stat.h> diff --git a/src/timeserver.c b/src/timeserver.c index 467da52..806b56f 100644 --- a/src/timeserver.c +++ b/src/timeserver.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <glib.h> diff --git a/src/timezone.c b/src/timezone.c index 173d658..f20b36e 100644 --- a/src/timezone.c +++ b/src/timezone.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <errno.h> #include <stdio.h> diff --git a/src/utsname.c b/src/utsname.c index 1451c74..1aa2449 100644 --- a/src/utsname.c +++ b/src/utsname.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glib.h> #include "connman.h" diff --git a/src/wispr.c b/src/wispr.c index 9412f1e..d098301 100644 --- a/src/wispr.c +++ b/src/wispr.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdlib.h> diff --git a/src/wpad.c b/src/wpad.c index 4e5834e..95ae227 100644 --- a/src/wpad.c +++ b/src/wpad.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdlib.h> #include <string.h> diff --git a/tools/addr-test.c b/tools/addr-test.c index 273ab02..327c200 100644 --- a/tools/addr-test.c +++ b/tools/addr-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <arpa/inet.h> diff --git a/tools/dbus-test.c b/tools/dbus-test.c index 94d94f0..1606d23 100644 --- a/tools/dbus-test.c +++ b/tools/dbus-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/tools/dhcp-server-test.c b/tools/dhcp-server-test.c index 4252e62..80f8586 100644 --- a/tools/dhcp-server-test.c +++ b/tools/dhcp-server-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/tools/dhcp-test.c b/tools/dhcp-test.c index 284656b..baa2799 100644 --- a/tools/dhcp-test.c +++ b/tools/dhcp-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <errno.h> #include <unistd.h> diff --git a/tools/polkit-test.c b/tools/polkit-test.c index 45e6eb8..e5ff062 100644 --- a/tools/polkit-test.c +++ b/tools/polkit-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <errno.h> diff --git a/tools/resolv-test.c b/tools/resolv-test.c index 9867a4b..85d173f 100644 --- a/tools/resolv-test.c +++ b/tools/resolv-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/tools/stats-tool.c b/tools/stats-tool.c index 0f06d8e..7b77869 100644 --- a/tools/stats-tool.c +++ b/tools/stats-tool.c @@ -18,10 +18,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <sys/mman.h> #include <sys/types.h> diff --git a/tools/supplicant-dbus.c b/tools/supplicant-dbus.c index 028a275..795a044 100644 --- a/tools/supplicant-dbus.c +++ b/tools/supplicant-dbus.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <stdlib.h> #include <string.h> diff --git a/tools/supplicant-test.c b/tools/supplicant-test.c index 9b33275..8e0593b 100644 --- a/tools/supplicant-test.c +++ b/tools/supplicant-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/tools/supplicant.c b/tools/supplicant.c index 1c96823..c3ef55c 100644 --- a/tools/supplicant.c +++ b/tools/supplicant.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <string.h> #include <stdint.h> diff --git a/tools/tap-test.c b/tools/tap-test.c index 1074c9c..bf4dc1c 100644 --- a/tools/tap-test.c +++ b/tools/tap-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <stdio.h> #include <errno.h> diff --git a/tools/web-test.c b/tools/web-test.c index a507397..d3e9052 100644 --- a/tools/web-test.c +++ b/tools/web-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <string.h> #include <signal.h> diff --git a/tools/wispr.c b/tools/wispr.c index 122bea5..34c4dba 100644 --- a/tools/wispr.c +++ b/tools/wispr.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define _GNU_SOURCE #include <stdio.h> #include <fcntl.h> diff --git a/tools/wpad-test.c b/tools/wpad-test.c index a6cc792..a7f9639 100644 --- a/tools/wpad-test.c +++ b/tools/wpad-test.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include <stdlib.h> #include <unistd.h> diff --git a/unit/manager-api.c b/unit/manager-api.c index 40ad370..722fbce 100644 --- a/unit/manager-api.c +++ b/unit/manager-api.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include "test-connman.h" diff --git a/unit/session-api.c b/unit/session-api.c index 14d48cf..920576e 100644 --- a/unit/session-api.c +++ b/unit/session-api.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <errno.h> #include <gdbus/gdbus.h> diff --git a/unit/test-ippool.c b/unit/test-ippool.c index 2df8561..acc57b3 100644 --- a/unit/test-ippool.c +++ b/unit/test-ippool.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glib.h> #include "../src/connman.h" diff --git a/unit/test-nat.c b/unit/test-nat.c index 7245b68..ea7a1c8 100644 --- a/unit/test-nat.c +++ b/unit/test-nat.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glib.h> #include "../src/connman.h" diff --git a/unit/test-session.c b/unit/test-session.c index 38ed2bf..485f773 100644 --- a/unit/test-session.c +++ b/unit/test-session.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdio.h> #include "gdbus/gdbus.h" diff --git a/unit/utils.c b/unit/utils.c index 758528a..03d16ba 100644 --- a/unit/utils.c +++ b/unit/utils.c @@ -19,10 +19,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <stdlib.h> #include "gdbus/gdbus.h" -- 1.7.11.1 _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
