void-packages/srcpkgs/osg/patches/musl-endianess.patch
Jürgen Buchmüller 7922130229 New package: osg-3.4.0
OpenSceneGraph required for FlightGear
2015-10-31 09:37:01 +01:00

15 lines
628 B
Diff

This time it's the other way round: both GNU libc and musl libc
have <endian.h> so use defined(__linux__) to use this header
file for setting the target's endianness.
--- src/osgPlugins/osc/osc/OscHostEndianness.h 2015-07-23 13:14:00.000000000 +0200
+++ src/osgPlugins/osc/osc/OscHostEndianness.h 2015-10-31 06:39:02.503234496 +0100
@@ -51,7 +51,7 @@
#else
- #if defined(__GLIBC__) || defined(__ANDROID__) || defined(__CYGWIN__)
+ #if defined(__linux__) || defined(__ANDROID__) || defined(__CYGWIN__)
#include <endian.h>
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
#ifndef __LITTLE_ENDIAN__