diff --git a/block_suspend.cpp b/block_suspend.cpp index 99341b8..18c93d4 100644 --- a/block_suspend.cpp +++ b/block_suspend.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#include + #include #include @@ -33,7 +35,7 @@ int main(int argc, char ** /* argv */) { } android::wakelock::WakeLock wl{gWakeLockName}; // RAII object - while (true) {}; + while (true) { sleep(1000000); }; std::abort(); // should never reach here return 0; }