Re: [PATCH 07/16] compat: add endinanness helpers
- From
Vicent Martí <tanoku@gmail.com>
- Date
- Jun 25, 2013, 13:25 UTC
- Message-ID
- <CAFFjANSNagvDgvrFNV1OLg=-4BPyQVjMDnfMPihdhVJR7o0TdQ@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.2.00.1306251404510.9929@ds9.cixit.se>
On Tue, Jun 25, 2013 at 3:08 PM, Peter Krefting <peter@softwolves.pp.se> wrote:
> endian(3) claims that glibc 2.9+ define be64toh() and htobe64() which should > do what you are looking for. The manual page does mention them being named > differently across OSes, though, so you may need to be careful with that.
I'm aware of that, but Git needs to build with glibc 2.7+ (or was it 2.6?), hence the need for this compat layer.