From 02b383fded60b1d39182d4d8bba89c3741d1b9ae Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Thu, 3 Oct 2024 13:41:40 -0700 Subject: [PATCH] gfxstream: use util/libsync Gets rid of some #ifdefs. Acked-by: Yonggang Luo Part-of: --- src/gfxstream/guest/platform/linux/LinuxSync.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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); }