From 35fb7057116f9a24a67f446e717726e44aa8d18e Mon Sep 17 00:00:00 2001 From: haotuo Date: Wed, 20 Dec 2023 20:39:27 +0800 Subject: [PATCH] Remove res_state define and program_invocation_name because dont exposed by libc Signed-off-by: haotuo Change-Id: Iae1cf00084800db09c4ea6780da32c39ea91ab89 --- third_party/musl/ndk_musl_include/errno.h | 4 ---- third_party/musl/ndk_musl_include/resolv.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/third_party/musl/ndk_musl_include/errno.h b/third_party/musl/ndk_musl_include/errno.h index 9ebe0f75e17..954aef941bf 100644 --- a/third_party/musl/ndk_musl_include/errno.h +++ b/third_party/musl/ndk_musl_include/errno.h @@ -15,10 +15,6 @@ __attribute__((const)) int *__errno_location(void); #define errno (*__errno_location()) -#ifdef _GNU_SOURCE -extern char *program_invocation_short_name, *program_invocation_name; -#endif - #ifdef __cplusplus } #endif diff --git a/third_party/musl/ndk_musl_include/resolv.h b/third_party/musl/ndk_musl_include/resolv.h index f4849522b67..591cc18d60e 100644 --- a/third_party/musl/ndk_musl_include/resolv.h +++ b/third_party/musl/ndk_musl_include/resolv.h @@ -122,8 +122,6 @@ struct res_sym { #define RES_PRF_REPLY 0x00002000 #define RES_PRF_INIT 0x00004000 -#define _res (*__res_state()) - int res_init(void); int res_query(const char *, int, int, unsigned char *, int); int res_querydomain(const char *, const char *, int, int, unsigned char *, int); -- Gitee