summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--Makefile.obexd10
-rw-r--r--attrib/client.c4
-rw-r--r--attrib/gatt-service.c4
-rw-r--r--attrib/gatt.c4
-rw-r--r--attrib/gatttool.c4
-rw-r--r--emulator/b1ee.c4
-rw-r--r--emulator/btdev.c4
-rw-r--r--emulator/main.c4
-rw-r--r--emulator/server.c4
-rw-r--r--emulator/vhci.c4
-rw-r--r--gdbus/mainloop.c4
-rw-r--r--gdbus/object.c4
-rw-r--r--gdbus/polkit.c4
-rw-r--r--gdbus/watch.c4
-rw-r--r--gobex/gobex-apparam.c4
-rw-r--r--gobex/gobex-defs.c4
-rw-r--r--gobex/gobex-header.c4
-rw-r--r--gobex/gobex-packet.c4
-rw-r--r--gobex/gobex-transfer.c4
-rw-r--r--gobex/gobex.c4
-rw-r--r--lib/bluetooth.c4
-rw-r--r--lib/hci.c4
-rw-r--r--lib/sdp.c4
-rw-r--r--lib/uuid.c4
-rw-r--r--monitor/btsnoop.c4
-rw-r--r--monitor/control.c4
-rw-r--r--monitor/display.c4
-rw-r--r--monitor/hcidump.c4
-rw-r--r--monitor/l2cap.c4
-rw-r--r--monitor/main.c4
-rw-r--r--monitor/mainloop.c4
-rw-r--r--monitor/packet.c4
-rw-r--r--monitor/sdp.c4
-rw-r--r--monitor/uuid.c4
-rw-r--r--obexd/client/bluetooth.c4
-rw-r--r--obexd/client/dbus.c4
-rw-r--r--obexd/client/driver.c4
-rw-r--r--obexd/client/ftp.c4
-rw-r--r--obexd/client/main.c4
-rw-r--r--obexd/client/manager.c4
-rw-r--r--obexd/client/map.c4
-rw-r--r--obexd/client/opp.c4
-rw-r--r--obexd/client/pbap.c4
-rw-r--r--obexd/client/session.c4
-rw-r--r--obexd/client/sync.c4
-rw-r--r--obexd/client/transfer.c4
-rw-r--r--obexd/client/transport.c4
-rw-r--r--obexd/plugins/bluetooth.c4
-rw-r--r--obexd/plugins/filesystem.c4
-rw-r--r--obexd/plugins/ftp.c4
-rw-r--r--obexd/plugins/irmc.c4
-rw-r--r--obexd/plugins/mas.c4
-rw-r--r--obexd/plugins/messages-dummy.c4
-rw-r--r--obexd/plugins/messages-tracker.c4
-rw-r--r--obexd/plugins/opp.c4
-rw-r--r--obexd/plugins/pbap.c4
-rw-r--r--obexd/plugins/pcsuite.c4
-rw-r--r--obexd/plugins/phonebook-dummy.c4
-rw-r--r--obexd/plugins/phonebook-ebook.c4
-rw-r--r--obexd/plugins/syncevolution.c4
-rw-r--r--obexd/plugins/usb.c4
-rw-r--r--obexd/plugins/vcard.c4
-rw-r--r--obexd/src/log.c4
-rw-r--r--obexd/src/main.c4
-rw-r--r--obexd/src/manager.c4
-rw-r--r--obexd/src/mimetype.c4
-rw-r--r--obexd/src/obex.c4
-rw-r--r--obexd/src/plugin.c4
-rw-r--r--obexd/src/server.c4
-rw-r--r--obexd/src/service.c4
-rw-r--r--obexd/src/transport.c4
-rw-r--r--plugins/adaptername.c4
-rw-r--r--plugins/dbusoob.c4
-rw-r--r--plugins/external-dummy.c4
-rw-r--r--plugins/formfactor.c4
-rw-r--r--plugins/gatt-example.c4
-rw-r--r--plugins/neard.c4
-rw-r--r--plugins/service.c4
-rw-r--r--plugins/storage.c4
-rw-r--r--plugins/wiimote.c4
-rw-r--r--profiles/alert/main.c4
-rw-r--r--profiles/alert/manager.c4
-rw-r--r--profiles/alert/server.c4
-rw-r--r--profiles/audio/a2dp.c4
-rw-r--r--profiles/audio/avctp.c4
-rw-r--r--profiles/audio/avdtp.c4
-rw-r--r--profiles/audio/avrcp.c4
-rw-r--r--profiles/audio/control.c4
-rw-r--r--profiles/audio/device.c4
-rw-r--r--profiles/audio/main.c4
-rw-r--r--profiles/audio/manager.c4
-rw-r--r--profiles/audio/media.c4
-rw-r--r--profiles/audio/player.c4
-rw-r--r--profiles/audio/sink.c4
-rw-r--r--profiles/audio/source.c4
-rw-r--r--profiles/audio/transport.c4
-rw-r--r--profiles/cups/hcrp.c4
-rw-r--r--profiles/cups/main.c4
-rw-r--r--profiles/cups/sdp.c4
-rw-r--r--profiles/cups/spp.c4
-rw-r--r--profiles/cyclingspeed/cyclingspeed.c6
-rw-r--r--profiles/deviceinfo/deviceinfo.c4
-rw-r--r--profiles/deviceinfo/main.c4
-rw-r--r--profiles/gatt/gas.c4
-rw-r--r--profiles/gatt/main.c4
-rw-r--r--profiles/health/hdp_main.c4
-rw-r--r--profiles/health/hdp_manager.c4
-rw-r--r--profiles/health/hdp_util.c4
-rw-r--r--profiles/health/mcap_sync.c4
-rw-r--r--profiles/heartrate/heartrate.c6
-rw-r--r--profiles/heartrate/main.c4
-rw-r--r--profiles/input/device.c4
-rw-r--r--profiles/input/hog_device.c4
-rw-r--r--profiles/input/hog_manager.c4
-rw-r--r--profiles/input/main.c4
-rw-r--r--profiles/input/manager.c4
-rw-r--r--profiles/input/server.c4
-rw-r--r--profiles/input/suspend-dummy.c4
-rw-r--r--profiles/network/common.c4
-rw-r--r--profiles/network/connection.c4
-rw-r--r--profiles/network/main.c4
-rw-r--r--profiles/network/manager.c4
-rw-r--r--profiles/network/server.c4
-rw-r--r--profiles/proximity/immalert.c4
-rw-r--r--profiles/proximity/linkloss.c4
-rw-r--r--profiles/proximity/main.c4
-rw-r--r--profiles/proximity/manager.c4
-rw-r--r--profiles/proximity/monitor.c4
-rw-r--r--profiles/proximity/reporter.c4
-rw-r--r--profiles/sap/main.c4
-rw-r--r--profiles/sap/manager.c4
-rw-r--r--profiles/sap/sap-dummy.c4
-rw-r--r--profiles/sap/server.c4
-rw-r--r--profiles/scanparam/main.c4
-rw-r--r--profiles/scanparam/manager.c4
-rw-r--r--profiles/scanparam/scan.c4
-rw-r--r--profiles/thermometer/main.c4
-rw-r--r--profiles/thermometer/thermometer.c4
-rw-r--r--profiles/time/main.c4
-rw-r--r--profiles/time/manager.c4
-rw-r--r--profiles/time/server.c4
-rw-r--r--src/adapter.c4
-rw-r--r--src/agent.c4
-rw-r--r--src/attrib-server.c4
-rw-r--r--src/dbus-common.c4
-rw-r--r--src/device.c4
-rw-r--r--src/eir.c4
-rw-r--r--src/error.c4
-rw-r--r--src/glib-helper.c4
-rw-r--r--src/log.c4
-rw-r--r--src/main.c4
-rw-r--r--src/manager.c4
-rw-r--r--src/mgmt.c4
-rw-r--r--src/oui.c4
-rw-r--r--src/plugin.c4
-rw-r--r--src/profile.c4
-rw-r--r--src/rfkill.c4
-rw-r--r--src/sdp-client.c4
-rw-r--r--src/sdp-xml.c4
-rw-r--r--src/sdpd-database.c4
-rw-r--r--src/sdpd-request.c4
-rw-r--r--src/sdpd-server.c4
-rw-r--r--src/sdpd-service.c4
-rw-r--r--src/storage.c4
-rw-r--r--src/textfile.c4
-rw-r--r--test/agent.c4
-rw-r--r--test/attest.c4
-rw-r--r--test/avtest.c4
-rw-r--r--test/bdaddr.c4
-rw-r--r--test/gaptest.c4
-rw-r--r--test/hciemu.c4
-rw-r--r--test/hstest.c4
-rw-r--r--test/l2test.c4
-rw-r--r--test/lmptest.c4
-rw-r--r--test/mpris-player.c4
-rw-r--r--test/rctest.c4
-rw-r--r--test/scotest.c4
-rw-r--r--test/sdptest.c4
-rw-r--r--test/test-textfile.c4
-rw-r--r--tools/avinfo.c4
-rw-r--r--tools/bccmd.c4
-rw-r--r--tools/btattach.c4
-rw-r--r--tools/btmgmt.c4
-rw-r--r--tools/btsnoop.c4
-rw-r--r--tools/ciptool.c4
-rw-r--r--tools/csr.c4
-rw-r--r--tools/csr_3wire.c4
-rw-r--r--tools/csr_bcsp.c4
-rw-r--r--tools/csr_h4.c4
-rw-r--r--tools/csr_hci.c4
-rw-r--r--tools/csr_usb.c4
-rw-r--r--tools/dfu.c4
-rw-r--r--tools/dfutool.c4
-rw-r--r--tools/hciattach.c4
-rw-r--r--tools/hciattach_ath3k.c4
-rw-r--r--tools/hciattach_intel.c4
-rw-r--r--tools/hciattach_qualcomm.c4
-rw-r--r--tools/hciattach_st.c4
-rw-r--r--tools/hciattach_ti.c4
-rw-r--r--tools/hciattach_tialt.c4
-rw-r--r--tools/hciconfig.c4
-rw-r--r--tools/hcieventmask.c4
-rw-r--r--tools/hcisecfilter.c4
-rw-r--r--tools/hcitool.c4
-rw-r--r--tools/hid2hci.c4
-rw-r--r--tools/l2ping.c4
-rw-r--r--tools/obex-server-tool.c4
-rw-r--r--tools/rfcomm.c4
-rw-r--r--tools/sdptool.c4
-rw-r--r--tools/ubcsp.c4
-rw-r--r--unit/test-eir.c4
212 files changed, 850 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am
index 8e090dbcc..5f4250d65 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -356,8 +356,8 @@ EXTRA_DIST += doc/adapter-api.txt doc/device-api.txt doc/profile-api.txt \
AM_CFLAGS += @DBUS_CFLAGS@ @GLIB_CFLAGS@
-AM_CPPFLAGS = -include $(top_builddir)/config.h -I$(builddir)/lib \
- -I$(builddir)/src -I$(srcdir)/src
+AM_CPPFLAGS = -I$(builddir)/lib -I$(builddir)/src -I$(srcdir)/src \
+ -I$(srcdir)/gdbus -I$(srcdir)/btio
if MCAP
AM_CPPFLAGS += -I$(builddir)/health
diff --git a/Makefile.obexd b/Makefile.obexd
index e235acc54..cbcd65db8 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -29,8 +29,9 @@ obexd_src_obexd_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ \
-DPLUGINDIR=\""$(obex_plugindir)"\" \
-fPIC -D_FILE_OFFSET_BITS=64
-obexd_src_obexd_CPPFLAGS = -include $(top_builddir)/config.h -I$(builddir)/lib \
- -I$(builddir)/obexd/src -I$(srcdir)/obexd/src
+obexd_src_obexd_CPPFLAGS = -I$(builddir)/lib -I$(builddir)/obexd/src \
+ -I$(srcdir)/obexd/src -I$(srcdir)/btio \
+ -I$(srcdir)/gobex -I$(srcdir)/gdbus
obexd_src_obexd_SHORTNAME = obexd
@@ -75,7 +76,8 @@ obexd_client_obex_client_LDADD = lib/libbluetooth-private.la \
obexd_client_obex_client_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ \
-fPIC -D_FILE_OFFSET_BITS=64
-obexd_client_obex_client_CPPFLAGS = -include $(top_builddir)/config.h \
- -I$(builddir)/lib -I$(srcdir)/obexd/src
+obexd_client_obex_client_CPPFLAGS = -I$(builddir)/lib -I$(srcdir)/obexd/src \
+ -I$(srcdir)/btio -I$(srcdir)/gobex \
+ -I$(srcdir)/gdbus
obexd_client_obex_client_SHORTNAME = obex-client
diff --git a/attrib/client.c b/attrib/client.c
index d5337321e..138c0ef16 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -23,6 +23,10 @@
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdlib.h>
#include <stdbool.h>
diff --git a/attrib/gatt-service.c b/attrib/gatt-service.c
index 80e76eb22..e8788d9e4 100644
--- a/attrib/gatt-service.c
+++ b/attrib/gatt-service.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib.h>
#include <bluetooth/uuid.h>
#include <bluetooth/sdp.h>
diff --git a/attrib/gatt.c b/attrib/gatt.c
index cfa3c5336..38c050ed3 100644
--- a/attrib/gatt.c
+++ b/attrib/gatt.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <stdlib.h>
#include <glib.h>
diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index 5bda975ed..e66059dc5 100644
--- a/attrib/gatttool.c
+++ b/attrib/gatttool.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <glib.h>
#include <stdlib.h>
diff --git a/emulator/b1ee.c b/emulator/b1ee.c
index 18b827ece..17a60fca6 100644
--- a/emulator/b1ee.c
+++ b/emulator/b1ee.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/emulator/btdev.c b/emulator/btdev.c
index bd158ee68..700c6a800 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
diff --git a/emulator/main.c b/emulator/main.c
index 412470228..807c66396 100644
--- a/emulator/main.c
+++ b/emulator/main.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
diff --git a/emulator/server.c b/emulator/server.c
index ea8fa21c5..e4c4570b9 100644
--- a/emulator/server.c
+++ b/emulator/server.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/emulator/vhci.c b/emulator/vhci.c
index 0062bebf9..52876ba91 100644
--- a/emulator/vhci.c
+++ b/emulator/vhci.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c
index 483ed6610..099b67fef 100644
--- a/gdbus/mainloop.c
+++ b/gdbus/mainloop.c
@@ -21,6 +21,10 @@
*
*/
+#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 611cded60..7cbd6121e 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -21,6 +21,10 @@
*
*/
+#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 508937df8..9e95fa384 100644
--- a/gdbus/polkit.c
+++ b/gdbus/polkit.c
@@ -21,6 +21,10 @@
*
*/
+#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 0dcb2a268..9e4f994a3 100644
--- a/gdbus/watch.c
+++ b/gdbus/watch.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
diff --git a/gobex/gobex-apparam.c b/gobex/gobex-apparam.c
index 0c3cc8aa4..442a3f140 100644
--- a/gobex/gobex-apparam.c
+++ b/gobex/gobex-apparam.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <unistd.h>
#include <errno.h>
diff --git a/gobex/gobex-defs.c b/gobex/gobex-defs.c
index f1f3b38ff..c184c9c91 100644
--- a/gobex/gobex-defs.c
+++ b/gobex/gobex-defs.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib.h>
#include "gobex-defs.h"
diff --git a/gobex/gobex-header.c b/gobex/gobex-header.c
index 6136f2c2b..80e8e4e6f 100644
--- a/gobex/gobex-header.c
+++ b/gobex/gobex-header.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include "gobex-header.h"
diff --git a/gobex/gobex-packet.c b/gobex/gobex-packet.c
index d59bbce2f..c3e395310 100644
--- a/gobex/gobex-packet.c
+++ b/gobex/gobex-packet.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <errno.h>
diff --git a/gobex/gobex-transfer.c b/gobex/gobex-transfer.c
index f29a7ce25..724c78828 100644
--- a/gobex/gobex-transfer.c
+++ b/gobex/gobex-transfer.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <errno.h>
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 59a0159ee..7c136af9e 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <unistd.h>
#include <string.h>
#include <errno.h>
diff --git a/lib/bluetooth.c b/lib/bluetooth.c
index 42075a4fe..d9360dc7f 100644
--- a/lib/bluetooth.c
+++ b/lib/bluetooth.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/lib/hci.c b/lib/hci.c
index ba5f58246..66b2d5f0c 100644
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/lib/sdp.c b/lib/sdp.c
index 1cee8dcae..dbffec06d 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -24,6 +24,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/lib/uuid.c b/lib/uuid.c
index 0035c6c7e..4363aee49 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <stdlib.h>
#include <errno.h>
diff --git a/monitor/btsnoop.c b/monitor/btsnoop.c
index e8de17952..04a6dff17 100644
--- a/monitor/btsnoop.c
+++ b/monitor/btsnoop.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/monitor/control.c b/monitor/control.c
index 160ce4ce8..3447b7a51 100644
--- a/monitor/control.c
+++ b/monitor/control.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/monitor/display.c b/monitor/display.c
index 48c3bacde..7b6fc98ef 100644
--- a/monitor/display.c
+++ b/monitor/display.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/monitor/hcidump.c b/monitor/hcidump.c
index f57ba81e1..e69bcb14d 100644
--- a/monitor/hcidump.c
+++ b/monitor/hcidump.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index db62b05ac..e982bdd35 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
diff --git a/monitor/main.c b/monitor/main.c
index 5a0229e4d..27a572225 100644
--- a/monitor/main.c
+++ b/monitor/main.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
diff --git a/monitor/mainloop.c b/monitor/mainloop.c
index 99f156c84..1cc787eb5 100644
--- a/monitor/mainloop.c
+++ b/monitor/mainloop.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/monitor/packet.c b/monitor/packet.c
index 7df654584..ee37615ff 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/monitor/sdp.c b/monitor/sdp.c
index 5cdf47de7..45ee59bbb 100644
--- a/monitor/sdp.c
+++ b/monitor/sdp.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/monitor/uuid.c b/monitor/uuid.c
index ca79b6883..c348e1742 100644
--- a/monitor/uuid.c
+++ b/monitor/uuid.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "uuid.h"
static struct {
diff --git a/obexd/client/bluetooth.c b/obexd/client/bluetooth.c
index 6406b8b95..293eb8f65 100644
--- a/obexd/client/bluetooth.c
+++ b/obexd/client/bluetooth.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <inttypes.h>
diff --git a/obexd/client/dbus.c b/obexd/client/dbus.c
index ad7670022..2fa263e50 100644
--- a/obexd/client/dbus.c
+++ b/obexd/client/dbus.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib.h>
#include <gdbus/gdbus.h>
diff --git a/obexd/client/driver.c b/obexd/client/driver.c
index 8cd369038..a98dcf4d3 100644
--- a/obexd/client/driver.c
+++ b/obexd/client/driver.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <errno.h>
#include <glib.h>
diff --git a/obexd/client/ftp.c b/obexd/client/ftp.c
index ea8be60c4..839b662e1 100644
--- a/obexd/client/ftp.c
+++ b/obexd/client/ftp.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <string.h>
diff --git a/obexd/client/main.c b/obexd/client/main.c
index a0b1c97b2..e0e2eb545 100644
--- a/obexd/client/main.c
+++ b/obexd/client/main.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/obexd/client/manager.c b/obexd/client/manager.c
index 36ca942d1..7a7c33f6d 100644
--- a/obexd/client/manager.c
+++ b/obexd/client/manager.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/obexd/client/map.c b/obexd/client/map.c
index ba33fe2bc..dcbcc8bfd 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <string.h>
#include <stdio.h>
diff --git a/obexd/client/opp.c b/obexd/client/opp.c
index aa08db659..773092a5a 100644
--- a/obexd/client/opp.c
+++ b/obexd/client/opp.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <gdbus/gdbus.h>
diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index c9a5e48ad..cd199c514 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <string.h>
#include <stdio.h>
diff --git a/obexd/client/session.c b/obexd/client/session.c
index 2118992f2..2bac229ed 100644
--- a/obexd/client/session.c
+++ b/obexd/client/session.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
diff --git a/obexd/client/sync.c b/obexd/client/sync.c
index a555430ce..d70706aaf 100644
--- a/obexd/client/sync.c
+++ b/obexd/client/sync.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <string.h>
diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c
index 362419ce6..38c99cd83 100644
--- a/obexd/client/transfer.c
+++ b/obexd/client/transfer.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
diff --git a/obexd/client/transport.c b/obexd/client/transport.c
index 21dfef4a4..77e52f702 100644
--- a/obexd/client/transport.c
+++ b/obexd/client/transport.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <errno.h>
#include <glib.h>
diff --git a/obexd/plugins/bluetooth.c b/obexd/plugins/bluetooth.c
index 4cbeac48d..1448d0ebb 100644
--- a/obexd/plugins/bluetooth.c
+++ b/obexd/plugins/bluetooth.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <string.h>
#include <unistd.h>
diff --git a/obexd/plugins/filesystem.c b/obexd/plugins/filesystem.c
index 1e6c6d766..1132a34c3 100644
--- a/obexd/plugins/filesystem.c
+++ b/obexd/plugins/filesystem.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/obexd/plugins/ftp.c b/obexd/plugins/ftp.c
index b89f9b242..ff4b76180 100644
--- a/obexd/plugins/ftp.c
+++ b/obexd/plugins/ftp.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
diff --git a/obexd/plugins/irmc.c b/obexd/plugins/irmc.c
index 1c172b88c..c9c3521ea 100644
--- a/obexd/plugins/irmc.c
+++ b/obexd/plugins/irmc.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <errno.h>
diff --git a/obexd/plugins/mas.c b/obexd/plugins/mas.c
index b279bf068..1b180599d 100644
--- a/obexd/plugins/mas.c
+++ b/obexd/plugins/mas.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <errno.h>
#include <glib.h>
diff --git a/obexd/plugins/messages-dummy.c b/obexd/plugins/messages-dummy.c
index 869f9df35..4c66f51bb 100644
--- a/obexd/plugins/messages-dummy.c
+++ b/obexd/plugins/messages-dummy.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
diff --git a/obexd/plugins/messages-tracker.c b/obexd/plugins/messages-tracker.c
index 96da001ba..60f3a807e 100644
--- a/obexd/plugins/messages-tracker.c
+++ b/obexd/plugins/messages-tracker.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <glib.h>
#include <string.h>
diff --git a/obexd/plugins/opp.c b/obexd/plugins/opp.c
index 747ab85db..c7ddc63c3 100644
--- a/obexd/plugins/opp.c
+++ b/obexd/plugins/opp.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <string.h>
#include <unistd.h>
diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index e94edae93..4d4f0b80c 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <errno.h>
diff --git a/obexd/plugins/pcsuite.c b/obexd/plugins/pcsuite.c
index 6d5bea449..6ad8f4958 100644
--- a/obexd/plugins/pcsuite.c
+++ b/obexd/plugins/pcsuite.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
diff --git a/obexd/plugins/phonebook-dummy.c b/obexd/plugins/phonebook-dummy.c
index 458136e26..6b9d0403f 100644
--- a/obexd/plugins/phonebook-dummy.c
+++ b/obexd/plugins/phonebook-dummy.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <dirent.h>
#include <errno.h>
#include <stdio.h>
diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c
index b1935b797..59a4eac84 100644
--- a/obexd/plugins/phonebook-ebook.c
+++ b/obexd/plugins/phonebook-ebook.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <errno.h>
#include <glib.h>
diff --git a/obexd/plugins/syncevolution.c b/obexd/plugins/syncevolution.c
index 02c02d4c0..2d25d28a9 100644
--- a/obexd/plugins/syncevolution.c
+++ b/obexd/plugins/syncevolution.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <stdio.h>
#include <errno.h>
diff --git a/obexd/plugins/usb.c b/obexd/plugins/usb.c
index 350b37b60..1c3da3e86 100644
--- a/obexd/plugins/usb.c
+++ b/obexd/plugins/usb.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/obexd/plugins/vcard.c b/obexd/plugins/vcard.c
index c9f178a5c..b36e4bffa 100644
--- a/obexd/plugins/vcard.c
+++ b/obexd/plugins/vcard.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/obexd/src/log.c b/obexd/src/log.c
index 1d3a8f20b..59b615158 100644
--- a/obexd/src/log.c
+++ b/obexd/src/log.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdarg.h>
#include <syslog.h>
diff --git a/obexd/src/main.c b/obexd/src/main.c
index d9329ce8b..e39f00c44 100644
--- a/obexd/src/main.c
+++ b/obexd/src/main.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index ce66e1956..02dc999f6 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <unistd.h>
#include <string.h>
diff --git a/obexd/src/mimetype.c b/obexd/src/mimetype.c
index 548a31af6..833ddc721 100644
--- a/obexd/src/mimetype.c
+++ b/obexd/src/mimetype.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <string.h>
diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index bdaf92382..a3e7b0e4b 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/obexd/src/plugin.c b/obexd/src/plugin.c
index b8a9daa07..c8ec64264 100644
--- a/obexd/src/plugin.c
+++ b/obexd/src/plugin.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <dlfcn.h>
#include <string.h>
diff --git a/obexd/src/server.c b/obexd/src/server.c
index 9976bd0a5..091f2ed98 100644
--- a/obexd/src/server.c
+++ b/obexd/src/server.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/obexd/src/service.c b/obexd/src/service.c
index 46fcb1d2a..4d9ebfde8 100644
--- a/obexd/src/service.c
+++ b/obexd/src/service.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <string.h>
diff --git a/obexd/src/transport.c b/obexd/src/transport.c
index c0fc2c990..4984643e2 100644
--- a/obexd/src/transport.c
+++ b/obexd/src/transport.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <string.h>
diff --git a/plugins/adaptername.c b/plugins/adaptername.c
index fbb9470f2..179152fdd 100644
--- a/plugins/adaptername.c
+++ b/plugins/adaptername.c
@@ -25,6 +25,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
diff --git a/plugins/dbusoob.c b/plugins/dbusoob.c
index 5c4f65069..ae492f143 100644
--- a/plugins/dbusoob.c
+++ b/plugins/dbusoob.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <errno.h>
diff --git a/plugins/external-dummy.c b/plugins/external-dummy.c
index 86e0ae94d..ff3129028 100644
--- a/plugins/external-dummy.c
+++ b/plugins/external-dummy.c
@@ -18,6 +18,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "plugin.h"
#include "log.h"
diff --git a/plugins/formfactor.c b/plugins/formfactor.c
index c72fb8a11..1978f0399 100644
--- a/plugins/formfactor.c
+++ b/plugins/formfactor.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <errno.h>
diff --git a/plugins/gatt-example.c b/plugins/gatt-example.c
index 0d3ce6f20..de090e945 100644
--- a/plugins/gatt-example.c
+++ b/plugins/gatt-example.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib.h>
#include <bluetooth/uuid.h>
#include <errno.h>
diff --git a/plugins/neard.c b/plugins/neard.c
index 8db852023..6d73e4818 100644
--- a/plugins/neard.c
+++ b/plugins/neard.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <gdbus/gdbus.h>
diff --git a/plugins/service.c b/plugins/service.c
index 81318d7de..b59b3429d 100644
--- a/plugins/service.c
+++ b/plugins/service.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdlib.h>
#include <string.h>
diff --git a/plugins/storage.c b/plugins/storage.c
index e5a0a7cfc..04a02c7fd 100644
--- a/plugins/storage.c
+++ b/plugins/storage.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <bluetooth/bluetooth.h>
#include "plugin.h"
diff --git a/plugins/wiimote.c b/plugins/wiimote.c
index 319d08c67..90d6d7bb4 100644
--- a/plugins/wiimote.c
+++ b/plugins/wiimote.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <bluetooth/bluetooth.h>
diff --git a/profiles/alert/main.c b/profiles/alert/main.c
index 70595f5a4..b9df0d4d6 100644
--- a/profiles/alert/main.c
+++ b/profiles/alert/main.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <glib.h>
#include <errno.h>
diff --git a/profiles/alert/manager.c b/profiles/alert/manager.c
index 1a655f0c1..eb2d62708 100644
--- a/profiles/alert/manager.c
+++ b/profiles/alert/manager.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "manager.h"
#include "server.h"
diff --git a/profiles/alert/server.c b/profiles/alert/server.c
index 4bc026586..20eb5fcc2 100644
--- a/profiles/alert/server.c
+++ b/profiles/alert/server.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <errno.h>
#include <gdbus/gdbus.h>
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index ffdcec64d..177f65342 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <errno.h>
diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c
index 061ebd088..382e77de6 100644
--- a/profiles/audio/avctp.c
+++ b/profiles/audio/avctp.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
index 8fd7118cf..3007053d0 100644
--- a/profiles/audio/avdtp.c
+++ b/profiles/audio/avdtp.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 6da001ad7..8af681b21 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
diff --git a/profiles/audio/control.c b/profiles/audio/control.c
index b8a66f0a8..ef6df720d 100644
--- a/profiles/audio/control.c
+++ b/profiles/audio/control.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdint.h>
#include <errno.h>
diff --git a/profiles/audio/device.c b/profiles/audio/device.c
index 2ee0d3d7f..9979b3643 100644
--- a/profiles/audio/device.c
+++ b/profiles/audio/device.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/profiles/audio/main.c b/profiles/audio/main.c
index 0c3a7037f..6bf406f0f 100644
--- a/profiles/audio/main.c
+++ b/profiles/audio/main.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <sys/socket.h>
#include <unistd.h>
diff --git a/profiles/audio/manager.c b/profiles/audio/manager.c
index 5efe1665d..8d7dc22de 100644
--- a/profiles/audio/manager.c
+++ b/profiles/audio/manager.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 4c5d38b55..0839f6982 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <bluetooth/uuid.h>
diff --git a/profiles/audio/player.c b/profiles/audio/player.c
index 9a820b73e..b04d99e47 100644
--- a/profiles/audio/player.c
+++ b/profiles/audio/player.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
diff --git a/profiles/audio/sink.c b/profiles/audio/sink.c
index c8f72073e..4be3bacd9 100644
--- a/profiles/audio/sink.c
+++ b/profiles/audio/sink.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
diff --git a/profiles/audio/source.c b/profiles/audio/source.c
index 964f273a6..6713cc496 100644
--- a/profiles/audio/source.c
+++ b/profiles/audio/source.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index ad4ae0d84..abb22b41f 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <bluetooth/uuid.h>
diff --git a/profiles/cups/hcrp.c b/profiles/cups/hcrp.c
index 4af47a9c6..a93dda07e 100644
--- a/profiles/cups/hcrp.c
+++ b/profiles/cups/hcrp.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/profiles/cups/main.c b/profiles/cups/main.c
index 11f2a24c8..f990b93ba 100644
--- a/profiles/cups/main.c
+++ b/profiles/cups/main.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/profiles/cups/sdp.c b/profiles/cups/sdp.c
index 203577b89..c7f17a4ab 100644
--- a/profiles/cups/sdp.c
+++ b/profiles/cups/sdp.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/profiles/cups/spp.c b/profiles/cups/spp.c
index fba963252..d906ed223 100644
--- a/profiles/cups/spp.c
+++ b/profiles/cups/spp.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/profiles/cyclingspeed/cyclingspeed.c b/profiles/cyclingspeed/cyclingspeed.c
index 468f18001..e236ff791 100644
--- a/profiles/cyclingspeed/cyclingspeed.c
+++ b/profiles/cyclingspeed/cyclingspeed.c
@@ -20,11 +20,15 @@
*
*/
-#include <gdbus/gdbus.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdbool.h>
#include <glib.h>
#include <bluetooth/uuid.h>
+#include <gdbus/gdbus.h>
#include "plugin.h"
#include "adapter.h"
diff --git a/profiles/deviceinfo/deviceinfo.c b/profiles/deviceinfo/deviceinfo.c
index e2daab576..da27df824 100644
--- a/profiles/deviceinfo/deviceinfo.c
+++ b/profiles/deviceinfo/deviceinfo.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <glib.h>
diff --git a/profiles/deviceinfo/main.c b/profiles/deviceinfo/main.c
index d67e58bb5..38845798d 100644
--- a/profiles/deviceinfo/main.c
+++ b/profiles/deviceinfo/main.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib.h>
#include <errno.h>
#include <stdint.h>
diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c
index 5ec0a8f3d..2c1dc83bf 100644
--- a/profiles/gatt/gas.c
+++ b/profiles/gatt/gas.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <stdlib.h>
#include <sys/types.h>
diff --git a/profiles/gatt/main.c b/profiles/gatt/main.c
index 6b90dc247..ecd44551e 100644
--- a/profiles/gatt/main.c
+++ b/profiles/gatt/main.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <glib.h>
#include <errno.h>
diff --git a/profiles/health/hdp_main.c b/profiles/health/hdp_main.c
index 7f4e8d588..e705ee926 100644
--- a/profiles/health/hdp_main.c
+++ b/profiles/health/hdp_main.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <gdbus/gdbus.h>
diff --git a/profiles/health/hdp_manager.c b/profiles/health/hdp_manager.c
index 3945bf87b..b80170604 100644
--- a/profiles/health/hdp_manager.c
+++ b/profiles/health/hdp_manager.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <bluetooth/sdp.h>
diff --git a/profiles/health/hdp_util.c b/profiles/health/hdp_util.c
index 339f8cff8..b2fb2acc7 100644
--- a/profiles/health/hdp_util.c
+++ b/profiles/health/hdp_util.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <stdbool.h>
diff --git a/profiles/health/mcap_sync.c b/profiles/health/mcap_sync.c
index 06ea7da67..b9c679d69 100644
--- a/profiles/health/mcap_sync.c
+++ b/profiles/health/mcap_sync.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <netinet/in.h>
#include <time.h>
diff --git a/profiles/heartrate/heartrate.c b/profiles/heartrate/heartrate.c
index 7abb6ed1d..155100eb7 100644
--- a/profiles/heartrate/heartrate.c
+++ b/profiles/heartrate/heartrate.c
@@ -20,11 +20,15 @@
*
*/
-#include <gdbus/gdbus.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdbool.h>
#include <glib.h>
#include <bluetooth/uuid.h>
+#include <gdbus/gdbus.h>
#include "adapter.h"
#include "dbus-common.h"
diff --git a/profiles/heartrate/main.c b/profiles/heartrate/main.c
index 23337c420..80a6ba421 100644
--- a/profiles/heartrate/main.c
+++ b/profiles/heartrate/main.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <glib.h>
#include <errno.h>
diff --git a/profiles/input/device.c b/profiles/input/device.c
index 986e92402..b22e0a76d 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
diff --git a/profiles/input/hog_device.c b/profiles/input/hog_device.c
index 1e06c799e..a873eac1b 100644
--- a/profiles/input/hog_device.c
+++ b/profiles/input/hog_device.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
diff --git a/profiles/input/hog_manager.c b/profiles/input/hog_manager.c
index d16bf5faa..595b160ef 100644
--- a/profiles/input/hog_manager.c
+++ b/profiles/input/hog_manager.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdbool.h>
diff --git a/profiles/input/main.c b/profiles/input/main.c
index 6b66f8bd5..29337d9cf 100644
--- a/profiles/input/main.c
+++ b/profiles/input/main.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <bluetooth/bluetooth.h>
diff --git a/profiles/input/manager.c b/profiles/input/manager.c
index 2b1b38ccb..b8e89c340 100644
--- a/profiles/input/manager.c
+++ b/profiles/input/manager.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdbool.h>
diff --git a/profiles/input/server.c b/profiles/input/server.c
index db5592b79..8476b7c91 100644
--- a/profiles/input/server.c
+++ b/profiles/input/server.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <unistd.h>
#include <stdbool.h>
#include <errno.h>
diff --git a/profiles/input/suspend-dummy.c b/profiles/input/suspend-dummy.c
index d76fac5f1..b43946da4 100644
--- a/profiles/input/suspend-dummy.c
+++ b/profiles/input/suspend-dummy.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/profiles/network/common.c b/profiles/network/common.c
index 107d58d67..34ab7888d 100644
--- a/profiles/network/common.c
+++ b/profiles/network/common.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/profiles/network/connection.c b/profiles/network/connection.c
index 8df4a6bde..1856eb8fc 100644
--- a/profiles/network/connection.c
+++ b/profiles/network/connection.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
diff --git a/profiles/network/main.c b/profiles/network/main.c
index 98eb7b584..99a19546d 100644
--- a/profiles/network/main.c
+++ b/profiles/network/main.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <gdbus/gdbus.h>
diff --git a/profiles/network/manager.c b/profiles/network/manager.c
index 70ad8887a..e737f6df1 100644
--- a/profiles/network/manager.c
+++ b/profiles/network/manager.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <bluetooth/bluetooth.h>
diff --git a/profiles/network/server.c b/profiles/network/server.c
index 6d0274a06..e32e51d54 100644
--- a/profiles/network/server.c
+++ b/profiles/network/server.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
diff --git a/profiles/proximity/immalert.c b/profiles/proximity/immalert.c
index 92166d43f..04557b436 100644
--- a/profiles/proximity/immalert.c
+++ b/profiles/proximity/immalert.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <glib.h>
diff --git a/profiles/proximity/linkloss.c b/profiles/proximity/linkloss.c
index 648202fbd..c1c41776e 100644
--- a/profiles/proximity/linkloss.c
+++ b/profiles/proximity/linkloss.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <glib.h>
diff --git a/profiles/proximity/main.c b/profiles/proximity/main.c
index b795fd752..c7c50dc0d 100644
--- a/profiles/proximity/main.c
+++ b/profiles/proximity/main.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdint.h>
#include <glib.h>
diff --git a/profiles/proximity/manager.c b/profiles/proximity/manager.c
index 6da08ed0d..b93a60938 100644
--- a/profiles/proximity/manager.c
+++ b/profiles/proximity/manager.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <glib.h>
diff --git a/profiles/proximity/monitor.c b/profiles/proximity/monitor.c
index 517e50df9..023de7260 100644
--- a/profiles/proximity/monitor.c
+++ b/profiles/proximity/monitor.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <fcntl.h>
#include <gdbus/gdbus.h>
diff --git a/profiles/proximity/reporter.c b/profiles/proximity/reporter.c
index d504f9d59..ef3ab6aa1 100644
--- a/profiles/proximity/reporter.c
+++ b/profiles/proximity/reporter.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <errno.h>
diff --git a/profiles/sap/main.c b/profiles/sap/main.c
index d2218d43a..8cc953382 100644
--- a/profiles/sap/main.c
+++ b/profiles/sap/main.c
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <gdbus/gdbus.h>
#include "plugin.h"
diff --git a/profiles/sap/manager.c b/profiles/sap/manager.c
index 36fdb6c69..fddd7aa64 100644
--- a/profiles/sap/manager.c
+++ b/profiles/sap/manager.c
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include "log.h"
diff --git a/profiles/sap/sap-dummy.c b/profiles/sap/sap-dummy.c
index 0f9265c2f..6c717dcb6 100644
--- a/profiles/sap/sap-dummy.c
+++ b/profiles/sap/sap-dummy.c
@@ -22,6 +22,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib.h>
#include <gdbus/gdbus.h>
#include <stdint.h>
diff --git a/profiles/sap/server.c b/profiles/sap/server.c
index 033b9a319..d075e40a5 100644
--- a/profiles/sap/server.c
+++ b/profiles/sap/server.c
@@ -24,6 +24,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <glib.h>
#include <bluetooth/sdp.h>
diff --git a/profiles/scanparam/main.c b/profiles/scanparam/main.c
index 509966618..74e8a5543 100644
--- a/profiles/scanparam/main.c
+++ b/profiles/scanparam/main.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdint.h>
#include <glib.h>
diff --git a/profiles/scanparam/manager.c b/profiles/scanparam/manager.c
index 8acade17e..cea2b29cc 100644
--- a/profiles/scanparam/manager.c
+++ b/profiles/scanparam/manager.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <errno.h>
#include <glib.h>
diff --git a/profiles/scanparam/scan.c b/profiles/scanparam/scan.c
index 49f1eda4a..849336e24 100644
--- a/profiles/scanparam/scan.c
+++ b/profiles/scanparam/scan.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <bluetooth/bluetooth.h>
diff --git a/profiles/thermometer/main.c b/profiles/thermometer/main.c
index bf2b54c4a..6c1c40cdc 100644
--- a/profiles/thermometer/main.c
+++ b/profiles/thermometer/main.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <glib.h>
#include <errno.h>
diff --git a/profiles/thermometer/thermometer.c b/profiles/thermometer/thermometer.c
index 31bf7184c..537db99e4 100644
--- a/profiles/thermometer/thermometer.c
+++ b/profiles/thermometer/thermometer.c
@@ -20,6 +20,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <errno.h>
diff --git a/profiles/time/main.c b/profiles/time/main.c
index 3cbecd144..08abed222 100644
--- a/profiles/time/main.c
+++ b/profiles/time/main.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <glib.h>
#include <errno.h>
diff --git a/profiles/time/manager.c b/profiles/time/manager.c
index fec908432..608a807be 100644
--- a/profiles/time/manager.c
+++ b/profiles/time/manager.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include "manager.h"
diff --git a/profiles/time/server.c b/profiles/time/server.c
index c6405b1fd..0a17b83dc 100644
--- a/profiles/time/server.c
+++ b/profiles/time/server.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib.h>
#include <time.h>
#include <errno.h>
diff --git a/src/adapter.c b/src/adapter.c
index fff3d3f40..aa109fb3d 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/src/agent.c b/src/agent.c
index 82a0e9c85..7ecf19aeb 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/src/attrib-server.c b/src/attrib-server.c
index bdf5b38e4..8dc0d6a5a 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdint.h>
#include <stdbool.h>
diff --git a/src/dbus-common.c b/src/dbus-common.c
index 579e70408..73003e96e 100644
--- a/src/dbus-common.c
+++ b/src/dbus-common.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdint.h>
diff --git a/src/device.c b/src/device.c
index 2032b80ff..f6357a05d 100644
--- a/src/device.c
+++ b/src/device.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/src/eir.c b/src/eir.c
index c9bcd1c08..5162b85c3 100644
--- a/src/eir.c
+++ b/src/eir.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <ctype.h>
#include <stdlib.h>
diff --git a/src/error.c b/src/error.c
index a019dae01..7692790ae 100644
--- a/src/error.c
+++ b/src/error.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <gdbus/gdbus.h>
#include "error.h"
diff --git a/src/glib-helper.c b/src/glib-helper.c
index 9647ef287..fe5713ad5 100644
--- a/src/glib-helper.c
+++ b/src/glib-helper.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <errno.h>
diff --git a/src/log.c b/src/log.c
index 14090ad28..75a98a939 100644
--- a/src/log.c
+++ b/src/log.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdarg.h>
#include <syslog.h>
diff --git a/src/main.c b/src/main.c
index 0534e26ed..78e60c31e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/src/manager.c b/src/manager.c
index 47204a4e3..bc10f3291 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
diff --git a/src/mgmt.c b/src/mgmt.c
index aba86430d..81b0494af 100644
--- a/src/mgmt.c
+++ b/src/mgmt.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/src/oui.c b/src/oui.c
index b23923112..80bb3d32d 100644
--- a/src/oui.c
+++ b/src/oui.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/src/plugin.c b/src/plugin.c
index c931e6876..5622d7b06 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <dlfcn.h>
#include <string.h>
diff --git a/src/profile.c b/src/profile.c
index 6613b1c2e..afa487bb2 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
diff --git a/src/rfkill.c b/src/rfkill.c
index 4c4c62c2a..f82596b51 100644
--- a/src/rfkill.c
+++ b/src/rfkill.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
diff --git a/src/sdp-client.c b/src/sdp-client.c
index b2a253e98..106344a01 100644
--- a/src/sdp-client.c
+++ b/src/sdp-client.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
#include <bluetooth/bluetooth.h>
diff --git a/src/sdp-xml.c b/src/sdp-xml.c
index a3615e3e3..7d5f6264f 100644
--- a/src/sdp-xml.c
+++ b/src/sdp-xml.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/src/sdpd-database.c b/src/sdpd-database.c
index 0abdb9060..dd492bf3d 100644
--- a/src/sdpd-database.c
+++ b/src/sdpd-database.c
@@ -24,6 +24,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index 8f9f1cc09..2af743e7d 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -24,6 +24,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/src/sdpd-server.c b/src/sdpd-server.c
index 979c19332..1d9509e00 100644
--- a/src/sdpd-server.c
+++ b/src/sdpd-server.c
@@ -24,6 +24,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/src/sdpd-service.c b/src/sdpd-service.c
index 570ab56fb..b43ddc22f 100644
--- a/src/sdpd-service.c
+++ b/src/sdpd-service.c
@@ -24,6 +24,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/src/storage.c b/src/storage.c
index 090df9232..ac660219e 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/src/textfile.c b/src/textfile.c
index 167bc9766..b6a7e1faa 100644
--- a/src/textfile.c
+++ b/src/textfile.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/test/agent.c b/test/agent.c
index f2340662f..85dfb2213 100644
--- a/test/agent.c
+++ b/test/agent.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/test/attest.c b/test/attest.c
index c74df9a0a..12ba68259 100644
--- a/test/attest.c
+++ b/test/attest.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/test/avtest.c b/test/avtest.c
index 85e5aaecf..541b3cdd2 100644
--- a/test/avtest.c
+++ b/test/avtest.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/test/bdaddr.c b/test/bdaddr.c
index 062ebc6e8..f87fa385b 100644
--- a/test/bdaddr.c
+++ b/test/bdaddr.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/test/gaptest.c b/test/gaptest.c
index 175c9d823..a0541b179 100644
--- a/test/gaptest.c
+++ b/test/gaptest.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/test/hciemu.c b/test/hciemu.c
index 61ad0bdb2..a125cf434 100644
--- a/test/hciemu.c
+++ b/test/hciemu.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/test/hstest.c b/test/hstest.c
index edf6f8964..ac68059ab 100644
--- a/test/hstest.c
+++ b/test/hstest.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/test/l2test.c b/test/l2test.c
index c88116de3..314750463 100644
--- a/test/l2test.c
+++ b/test/l2test.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/test/lmptest.c b/test/lmptest.c
index 81d0beee6..549ae129f 100644
--- a/test/lmptest.c
+++ b/test/lmptest.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/test/mpris-player.c b/test/mpris-player.c
index d3511237e..90c87aab3 100644
--- a/test/mpris-player.c
+++ b/test/mpris-player.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/test/rctest.c b/test/rctest.c
index 58aa533c5..77fa03c74 100644
--- a/test/rctest.c
+++ b/test/rctest.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/test/scotest.c b/test/scotest.c
index 89dd7713f..a40e3955e 100644
--- a/test/scotest.c
+++ b/test/scotest.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/test/sdptest.c b/test/sdptest.c
index f05cd65d5..480a4688e 100644
--- a/test/sdptest.c
+++ b/test/sdptest.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/test/test-textfile.c b/test/test-textfile.c
index b30e355b4..e0a0c5b39 100644
--- a/test/test-textfile.c
+++ b/test/test-textfile.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/avinfo.c b/tools/avinfo.c
index 55dd9b488..d237742f8 100644
--- a/tools/avinfo.c
+++ b/tools/avinfo.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/tools/bccmd.c b/tools/bccmd.c
index 3aa611212..952bf131d 100644
--- a/tools/bccmd.c
+++ b/tools/bccmd.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/tools/btattach.c b/tools/btattach.c
index 5de97b63f..a69c49e46 100644
--- a/tools/btattach.c
+++ b/tools/btattach.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index cd1ff4ba6..ff6a46a71 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/tools/btsnoop.c b/tools/btsnoop.c
index ad7d7851a..dcb4a2652 100644
--- a/tools/btsnoop.c
+++ b/tools/btsnoop.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/ciptool.c b/tools/ciptool.c
index 5e3840775..e240f38ba 100644
--- a/tools/ciptool.c
+++ b/tools/ciptool.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/tools/csr.c b/tools/csr.c
index 5851acee6..b4ea1fbbe 100644
--- a/tools/csr.c
+++ b/tools/csr.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/csr_3wire.c b/tools/csr_3wire.c
index 7537e6bfb..33fcf389a 100644
--- a/tools/csr_3wire.c
+++ b/tools/csr_3wire.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
diff --git a/tools/csr_bcsp.c b/tools/csr_bcsp.c
index d69808f38..f7afe537c 100644
--- a/tools/csr_bcsp.c
+++ b/tools/csr_bcsp.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/csr_h4.c b/tools/csr_h4.c
index 796dac480..337177066 100644
--- a/tools/csr_h4.c
+++ b/tools/csr_h4.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/csr_hci.c b/tools/csr_hci.c
index 78ef75804..6bd37c359 100644
--- a/tools/csr_hci.c
+++ b/tools/csr_hci.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <string.h>
diff --git a/tools/csr_usb.c b/tools/csr_usb.c
index c4f6614af..19903b0c3 100644
--- a/tools/csr_usb.c
+++ b/tools/csr_usb.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <string.h>
diff --git a/tools/dfu.c b/tools/dfu.c
index 47d825148..39ec08876 100644
--- a/tools/dfu.c
+++ b/tools/dfu.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <string.h>
diff --git a/tools/dfutool.c b/tools/dfutool.c
index 260684dea..16dd62eff 100644
--- a/tools/dfutool.c
+++ b/tools/dfutool.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/tools/hciattach.c b/tools/hciattach.c
index 34aaf8016..e1e80af81 100644
--- a/tools/hciattach.c
+++ b/tools/hciattach.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/hciattach_ath3k.c b/tools/hciattach_ath3k.c
index 4dd6036de..23208c66c 100644
--- a/tools/hciattach_ath3k.c
+++ b/tools/hciattach_ath3k.c
@@ -17,6 +17,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/tools/hciattach_intel.c b/tools/hciattach_intel.c
index 9bca0d490..749098ef9 100644
--- a/tools/hciattach_intel.c
+++ b/tools/hciattach_intel.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/tools/hciattach_qualcomm.c b/tools/hciattach_qualcomm.c
index b5a2d8995..0e02e1e92 100644
--- a/tools/hciattach_qualcomm.c
+++ b/tools/hciattach_qualcomm.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/hciattach_st.c b/tools/hciattach_st.c
index 7b2576098..dbb7c47b2 100644
--- a/tools/hciattach_st.c
+++ b/tools/hciattach_st.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/hciattach_ti.c b/tools/hciattach_ti.c
index 9db26c83e..b57c6b776 100644
--- a/tools/hciattach_ti.c
+++ b/tools/hciattach_ti.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/tools/hciattach_tialt.c b/tools/hciattach_tialt.c
index 18a304cc5..c3caa4922 100644
--- a/tools/hciattach_tialt.c
+++ b/tools/hciattach_tialt.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index fe88ec8d3..6b18c4f2f 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/tools/hcieventmask.c b/tools/hcieventmask.c
index e556c1ba8..87beac954 100644
--- a/tools/hcieventmask.c
+++ b/tools/hcieventmask.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/tools/hcisecfilter.c b/tools/hcisecfilter.c
index 97f06916d..9ad4ce0ca 100644
--- a/tools/hcisecfilter.c
+++ b/tools/hcisecfilter.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <sys/socket.h>
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 9b541a3b3..a05e31fcb 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/tools/hid2hci.c b/tools/hid2hci.c
index fe27d2930..e3a5b2ef7 100644
--- a/tools/hid2hci.c
+++ b/tools/hid2hci.c
@@ -22,6 +22,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/l2ping.c b/tools/l2ping.c
index 8d35fd92e..29fb3d0e8 100644
--- a/tools/l2ping.c
+++ b/tools/l2ping.c
@@ -23,6 +23,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/tools/obex-server-tool.c b/tools/obex-server-tool.c
index 84ffe8d5e..e37c56fd7 100644
--- a/tools/obex-server-tool.c
+++ b/tools/obex-server-tool.c
@@ -19,6 +19,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
diff --git a/tools/rfcomm.c b/tools/rfcomm.c
index 984ea3e21..affdbc78b 100644
--- a/tools/rfcomm.c
+++ b/tools/rfcomm.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/sdptool.c b/tools/sdptool.c
index 18c062ce0..a55df50b9 100644
--- a/tools/sdptool.c
+++ b/tools/sdptool.c
@@ -25,6 +25,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/tools/ubcsp.c b/tools/ubcsp.c
index 6bba7e25b..b3f883a03 100644
--- a/tools/ubcsp.c
+++ b/tools/ubcsp.c
@@ -26,6 +26,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/
diff --git a/unit/test-eir.c b/unit/test-eir.c
index 90aebbffe..cefcacd13 100644
--- a/unit/test-eir.c
+++ b/unit/test-eir.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <check.h>
#include <stdint.h>