Skip to content

Commit

Permalink
Bug 1382099 - Remove MOZ_WIDGET_GONK from mozglue/. r=glandium.
Browse files Browse the repository at this point in the history
--HG--
extra : rebase_source : be872a2272b731523fdad5ee52ffcd40d87729c5
  • Loading branch information
nnethercote committed Jul 19, 2017
1 parent 20df43a commit 76360b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
20 changes: 0 additions & 20 deletions mozglue/build/BionicGlue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,6 @@ struct SpecialAllocator: public std::allocator<T>
static std::vector<AtForkFuncs, SpecialAllocator<AtForkFuncs> > atfork;
#endif

#ifdef MOZ_WIDGET_GONK
#include "cpuacct.h"

#if ANDROID_VERSION < 17 || defined(MOZ_WIDGET_ANDROID)
extern "C" NS_EXPORT int
timer_create(clockid_t, struct sigevent*, timer_t*)
{
__android_log_print(ANDROID_LOG_ERROR, "BionicGlue", "timer_create not supported!");
abort();
return -1;
}
#endif

#else
#define cpuacct_add(x)
#endif

#if ANDROID_VERSION < 17 || defined(MOZ_WIDGET_ANDROID)
extern "C" NS_EXPORT int
pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void))
Expand Down Expand Up @@ -108,7 +91,6 @@ fork(void)

switch ((pid = syscall(__NR_clone, SIGCHLD, NULL, NULL, NULL, NULL))) {
case 0:
cpuacct_add(getuid());
for (auto it = atfork.begin();
it < atfork.end(); ++it)
if (it->child)
Expand Down Expand Up @@ -140,7 +122,6 @@ raise(int sig)
}

/* Flash plugin uses symbols that are not present in Android >= 4.4 */
#ifndef MOZ_WIDGET_GONK
namespace android {
namespace VectorImpl {
NS_EXPORT void reservedVectorImpl1(void) { }
Expand All @@ -153,5 +134,4 @@ namespace android {
NS_EXPORT void reservedVectorImpl8(void) { }
}
}
#endif

3 changes: 1 addition & 2 deletions mozglue/misc/TimeStamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,7 @@ class TimeStamp
* So it is same value of TimeStamp posix implementation.
* UNTESTED ON OTHER PLATFORMS
*/
#if defined(MOZ_WIDGET_GONK) || defined(XP_DARWIN) || \
defined(MOZ_WIDGET_ANDROID)
#if defined(XP_DARWIN) || defined(MOZ_WIDGET_ANDROID)
static TimeStamp FromSystemTime(int64_t aSystemTime)
{
static_assert(sizeof(aSystemTime) == sizeof(TimeStampValue),
Expand Down

0 comments on commit 76360b4

Please sign in to comment.