Skip to content

fix(android): guard AOSP headers with HAVE_ANDROID_PLATFORM and include epoll.h on Linux - #125

Draft
cattyopdud87-rgb wants to merge 1 commit into
lfdevs:dev/adreno-mainfrom
cattyopdud87-rgb:pr/android-platform-guards-dev
Draft

cattyopdud87-rgb wants to merge 1 commit into
lfdevs:dev/adreno-mainfrom
cattyopdud87-rgb:pr/android-platform-guards-dev

Conversation

@cattyopdud87-rgb

@cattyopdud87-rgb cattyopdud87-rgb commented Nov 19, 2026 •

Copy link
Copy Markdown

Rebased #124 onto dev/adreno-main.

Building inside Termux / a Linux container breaks because __ANDROID__ is defined without the AOSP headers (cutils/native_handle.h, log/log.h), and src/util/os_file.c is missing <sys/epoll.h>. This guards those paths behind HAVE_ANDROID_PLATFORM and adds the epoll.h include under DETECT_OS_LINUX.

@cattyopdud87-rgb cattyopdud87-rgb changed the title fix(android): guard Android platform headers with HAVE_ANDROID_PLATFORM and include epoll.h on Linux fix(android): guard AOSP headers with HAVE_ANDROID_PLATFORM and include epoll.h on Linux Nov 19, 2026
@cattyopdud87-rgb
cattyopdud87-rgb marked this pull request as ready for review November 19, 2026 13:01
@lfdevs

lfdevs commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Since similar patches already exist in the Termux build, such as 0022-fix-epoll-header-inclusion.patch, I will convert this PR to a draft for anyone who needs it.

@lfdevs
lfdevs marked this pull request as draft November 22, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants