Desc: Fix compilation on Solaris with some defines. Author: Heiko Przybyl --- kstars-4.3.80.orig/kstars/kstars/htmesh/SpatialGeneral.h +++ kstars-4.3.80/kstars/kstars/htmesh/SpatialGeneral.h @@ -83,7 +83,7 @@ typedef unsigned long long uint64; // emulate the standard bool type where not supported by compiler -# if !defined(SXGENERAL_H) && !defined(__sgi) && !defined(__linux__) && !defined(_WIN32) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__GLIBC__) +# if !defined(SXGENERAL_H) && !defined(__sgi) && !defined(__linux__) && !defined(_WIN32) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__GLIBC__) && !defined(__sun) # ifdef __unix__ /* * The following ifndef must ALWAYS be present since C++ may use --- kstars-4.3.80.orig/kstars/kstars/skycomponents/starcomponent.cpp +++ kstars-4.3.80/kstars/kstars/skycomponents/starcomponent.cpp @@ -41,6 +41,10 @@ #include #define bswap_16(x) bswap16(x) #define bswap_32(x) bswap32(x) +#elif defined(__sun) +#include +#define bswap_16(x) BSWAP_16(x) +#define bswap_32(x) BSWAP_32(x) #else #include "byteorder.h" #endif