android_stub: fix missing prototypes issues

When the compiler is configured to complain about missing
prototypes, the lack of prototypes can cause issues:

src/android_stub/cutils_stub.cpp:13:1:
   error: no previous prototype for function 'atrace_begin_body' [-Werror,-Wmissing-prototypes]
   13 | atrace_begin_body(const char * /*name*/)

Update cutils/trace.h to the version in android-16.0.0_r3 [1], and
add proper header includes to fix this.

[1] https://android.googlesource.com/platform/system/core.git/+/refs/tags/android-16.0.0_r3/libcutils/include/cutils/trace.h

Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38644>
This commit is contained in:
Gurchetan Singh
2025-11-24 14:14:07 -08:00
committed by Marge Bot
parent 1997987b58
commit 57ae8eb70f
2 changed files with 95 additions and 7 deletions
+1
View File
@@ -1,4 +1,5 @@
#include <vndk/window.h>
#include <vndk/hardware_buffer.h>
extern "C" {