From fcc68693bdab088c574f056326b4f93f103574b6 Mon Sep 17 00:00:00 2001 From: alba4k Date: Fri, 15 Dec 2023 19:30:01 +0100 Subject: [PATCH] fixed missing includes for android --- Makefile | 1 + src/info/host.c | 5 +++++ src/info/os.c | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/Makefile b/Makefile index f0590c9..379805e 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ endif ifeq ($(OS),Android) INSTALLPATH := $(PREFIX)/bin + INCLUDE := endif ifeq ($(KERNEL),Darwin) diff --git a/src/info/host.c b/src/info/host.c index 4ce29b4..456537c 100644 --- a/src/info/host.c +++ b/src/info/host.c @@ -6,6 +6,11 @@ #include #include +#ifdef __ANDROID__ +#include +#include +#endif // __ANDROID__ + // get the machine name and eventually model version int host(char *dest) { #ifdef __APPLE__ diff --git a/src/info/os.c b/src/info/os.c index faf02b6..7e9aa4c 100644 --- a/src/info/os.c +++ b/src/info/os.c @@ -7,6 +7,11 @@ #include #include +#ifdef __ANDROID__ +#include +#include +#endif // __ANDROID__ + // print the operating system name and architecture (uname -m) int os(char *dest) { struct utsname name;