diff options
author | Moonchild <moonchild@palemoon.org> | 2021-05-06 09:24:03 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-05-06 09:24:03 +0000 |
commit | 6f707bde95dab6998ac204f9ee6c925ee230c740 (patch) | |
tree | 859f6cf99f2e026b76dcc40b27b211154310d16e /tools | |
parent | aa0fd3d68c856504646e1d7eb499bc890ef44101 (diff) | |
download | uxp-6f707bde95dab6998ac204f9ee6c925ee230c740.tar.gz |
Issue #1751 -- Remove XP_MACOSX conditionals from the rest of the tree.
This also removes some PP abuse and takes file entries out of PP when no longer
needed without XP_MACOSX conditionals.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h | 8 | ||||
-rw-r--r-- | tools/profiler/tasktracer/GeckoTaskTracer.cpp | 5 |
2 files changed, 0 insertions, 13 deletions
diff --git a/tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h b/tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h index 6ac2344e31..70321a5748 100644 --- a/tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h +++ b/tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h @@ -193,14 +193,6 @@ static class ScopedXPCOM : public nsIDirectoryServiceProvider2 } greD->Clone(getter_AddRefs(mGREBinD)); -#ifdef XP_MACOSX - nsAutoCString leafName; - mGREBinD->GetNativeLeafName(leafName); - if (leafName.Equals("Resources")) { - mGREBinD->SetNativeLeafName(NS_LITERAL_CSTRING("MacOS")); - } -#endif - nsCOMPtr<nsIFile> copy = mGREBinD; return copy.forget(); } diff --git a/tools/profiler/tasktracer/GeckoTaskTracer.cpp b/tools/profiler/tasktracer/GeckoTaskTracer.cpp index 36d1bffc38..aefcb274ec 100644 --- a/tools/profiler/tasktracer/GeckoTaskTracer.cpp +++ b/tools/profiler/tasktracer/GeckoTaskTracer.cpp @@ -1,5 +1,4 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim:set ts=2 sw=2 sts=2 et cindent: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -26,10 +25,6 @@ #include <unistd.h> #include <sys/syscall.h> #define gettid() static_cast<pid_t>(syscall(SYS_gettid)) -#elif defined(XP_MACOSX) -#include <unistd.h> -#include <sys/syscall.h> -#define gettid() static_cast<pid_t>(syscall(SYS_thread_selfid)) #elif defined(LINUX) #include <sys/types.h> pid_t gettid(); |