Hi, using gcc atomic buildins breaks support for older gcc/platforms. src/bluetoothd-adapter.o: In function `btd_adapter_unref': adapter.c:(.text+0x63f8): undefined reference to `__sync_sub_and_fetch_4' I suggest to use glib g_atomic_* group of functions. They fall back to traditional locking if buildins are not available. kind regrads andy -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html