Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ghostlyrat
libmemcached
libmemcached-bigendian.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libmemcached-bigendian.patch of Package libmemcached
Index: libmemcached-1.0.11/libhashkit/jenkins.cc =================================================================== --- libmemcached-1.0.11.orig/libhashkit/jenkins.cc +++ libmemcached-1.0.11/libhashkit/jenkins.cc @@ -59,12 +59,13 @@ In which case, the hash table should hav uint32_t hashkit_jenkins(const char *key, size_t length, void *) { uint32_t a,b,c; /* internal state */ - union { const void *ptr; size_t i; } u; /* needed for Mac Powerbook G4 */ - +#ifndef WORDS_BIGENDIAN + union { const void *ptr; size_t i; } u; + u.ptr = key; +#endif /* Set up the internal state */ a = b = c = 0xdeadbeef + ((uint32_t)length) + JENKINS_INITVAL; - u.ptr = key; #ifndef WORDS_BIGENDIAN if ((u.i & 0x3) == 0) {
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