Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
MozillaFirefox.7685
firefox-glibc-getrandom.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File firefox-glibc-getrandom.patch of Package MozillaFirefox.7685
# HG changeset patch # Parent 6362bf6d6f4f290d3b428c15f1d6e1150f5913eb changeset: 351051:18e8f6994472 user: Charles Robertson <cgrobertson@suse.com> date: Thu Mar 30 14:53:00 2017 -0400 files: js/src/jsmath.cpp description: Bug 1352236 - Work around missing GETRANDOM_NR when building against older versions of glibc. r=luke diff --git a/js/src/jsmath.cpp b/js/src/jsmath.cpp --- a/js/src/jsmath.cpp +++ b/js/src/jsmath.cpp @@ -63,16 +63,29 @@ // Older glibc versions don't define SYS_getrandom, so we define it here if // it's not available. See bug 995069. # if defined(__x86_64__) # define GETRANDOM_NR 318 # elif defined(__i386__) # define GETRANDOM_NR 355 # elif defined(__arm__) # define GETRANDOM_NR 384 +// Added other architectures: +# elif defined(__ppc64le__) +# define GETRANDOM_NR 359 +# elif defined(__PPC64LE__) +# define GETRANDOM_NR 359 +# elif defined(__ppc64__) +# define GETRANDOM_NR 359 +# elif defined(__PPC64__) +# define GETRANDOM_NR 359 +# elif defined(__s390x__) +# define GETRANDOM_NR 349 +# elif defined(__s390__) +# define GETRANDOM_NR 349 # endif # if defined(SYS_getrandom) // We have SYS_getrandom. Use it to check GETRANDOM_NR. Only do this if we set // GETRANDOM_NR so tier 3 platforms with recent glibc are not forced to define // it for no good reason. # if defined(GETRANDOM_NR) static_assert(GETRANDOM_NR == SYS_getrandom,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor