summaryrefslogtreecommitdiff
path: root/app-admin/chrpath/files/chrpath-0.16-solaris.patch
blob: 5e1dd1957e8f03c78bc373405816ad37c1c7ead4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
protos: add bswap macros for Solaris

--- a/protos.h
+++ b/protos.h
@@ -1,7 +1,14 @@
 #ifndef PROTOS_H
 #define PROTOS_H
 
+#if defined(__sun)
+#include <sys/byteorder.h>
+#define bswap_16(x) BSWAP_16(x)
+#define bswap_32(x) BSWAP_32(x)
+#define bswap_64(x) BSWAP_64(x)
+#else
 #include <byteswap.h>
+#endif
 #include <elf.h>
 #include "config.h"