mesa/src/android_stub/sync_stub.cpp
Gurchetan Singh 5af6af9644 android_stub: add missing definition
Fixes:

android_stub/sync_stub.cpp:18:11: error: use of undeclared identifier 'NULL'
   18 |    return NULL;
      |           ^~~~

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38644>
2025-12-02 20:03:02 +00:00

25 lines
317 B
C++

#include <sync/sync.h>
extern "C" {
/* timeout in msecs */
int sync_wait(int fd, int timeout)
{
return 0;
}
int sync_merge(const char *name, int fd, int fd2)
{
return 0;
}
struct sync_file_info* sync_file_info(int32_t fd)
{
return nullptr;
}
void sync_file_info_free(struct sync_file_info* info)
{
}
}