| Summary: | be64toh usage needs autoconf | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Frank Ch. Eigler <fche> |
| Component: | elfutils | Assignee: | Roland McGrath <roland> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | fche, mjw, mjw, pmachata, roland |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-07-20 17:28:35 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Frank Ch. Eigler
2011-07-19 16:25:06 UTC
Even very old glibc have bswap_64, so maybe the simplest (untested) fix would be something like: #ifndef be64toh #include <byteswap.h> #if __BYTE_ORDER == __LITTLE_ENDIAN #define be64toh(x) bswap_64 (x) #else #define be64toh(x) (x) #endif #endif You can do that on the portability branch. Just observe style with space after # for nested directives. Tested and committed to the portable branch:
commit 878fd6e6184d791ff81cbd6d18fe8d968d3d843e
Author: Mark Wielaard <mjw>
Date: Wed Jul 20 14:59:02 2011 +0200
Add fallback for be64toh if not defined.
|