mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
[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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user