blob: 0773f55f5f253511e3520ee3fb7d5751247bb250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- kstars-4.4.65.orig/kstars/kstars/skycomponents/starcomponent.cpp
+++ kstars-4.4.65/kstars/kstars/skycomponents/starcomponent.cpp
@@ -40,6 +40,10 @@
#include <sys/endian.h>
#define bswap_16(x) bswap16(x)
#define bswap_32(x) bswap32(x)
+#elif defined(__sun)
+#include <sys/byteorder.h>
+#define bswap_16(x) BSWAP_16(x)
+#define bswap_32(x) BSWAP_32(x)
#else
#include "byteorder.h"
#endif
|