diff --git a/src/gfxstream/guest/platform/linux/LinuxSync.cpp b/src/gfxstream/guest/platform/linux/LinuxSync.cpp index 241a810abc2..8138b1ddd9e 100644 --- a/src/gfxstream/guest/platform/linux/LinuxSync.cpp +++ b/src/gfxstream/guest/platform/linux/LinuxSync.cpp @@ -2,25 +2,19 @@ * Copyright 2023 Google * SPDX-License-Identifier: MIT */ + #include "LinuxSync.h" -#if defined(__ANDROID__) -#include -#endif #include +#include "util/libsync.h" + namespace gfxstream { LinuxSyncHelper::LinuxSyncHelper() {} int LinuxSyncHelper::wait(int syncFd, int timeoutMilliseconds) { -#if defined(__ANDROID__) return sync_wait(syncFd, timeoutMilliseconds); -#else - (void)syncFd; - (void)timeoutMilliseconds; - return -1; -#endif } int LinuxSyncHelper::dup(int syncFd) { return ::dup(syncFd); }