Fix c compat issues

Bug: 381293544
Change-Id: Ied40d74f9f96e647aa56500b7ed04c573be24b98
Test: build
Flag: EXEMPT NDK
1 file changed