Initial patch to compile against UPower >= 0.99
--- upower.c +++ upower.c @@ -62,8 +62,10 @@ return 0; } + #if !UP_CHECK_VERSION(0, 9, 99) /* Allow a battery that was not present before to appear. */ up_client_enumerate_devices_sync(up, NULL, NULL); + #endif devices = up_client_get_devices(up);