[lldb] Remove more workrounds for Android that have been fixed upstream (#124176)

Issues that were fixed 10+ years ago with Bionic libc.
This commit is contained in:
Brad Smith
2025-01-24 02:54:54 -05:00
committed by GitHub
parent ee2722fc88
commit e289cb545a
3 changed files with 1 additions and 13 deletions

View File

@@ -20,14 +20,6 @@
using namespace lldb;
using namespace lldb_private;
#ifdef __ANDROID__
// Android does not have SUN_LEN
#ifndef SUN_LEN
#define SUN_LEN(ptr) \
(offsetof(struct sockaddr_un, sun_path) + strlen((ptr)->sun_path))
#endif
#endif // #ifdef __ANDROID__
static const int kDomain = AF_UNIX;
static const int kType = SOCK_STREAM;

View File

@@ -24,10 +24,6 @@
#include <csignal>
#include <sstream>
#ifdef __ANDROID__
#define PT_TRACE_ME PTRACE_TRACEME
#endif
#if defined(__linux__)
#include <sys/personality.h>
#endif

View File

@@ -8,7 +8,7 @@
#include "ObjectContainerBSDArchive.h"
#if defined(_WIN32) || defined(__ANDROID__) || defined(_AIX)
#if defined(_WIN32) || defined(_AIX)
// Defines from ar, missing on Windows
#define SARMAG 8
#define ARFMAG "`\n"