blob: 5f54fab22a7cd67dee39ae4241e30185e9423e83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Index: exscalibar-1.0.4/src/qtextra/qsocketsession.h
===================================================================
--- exscalibar-1.0.4.orig/src/qtextra/qsocketsession.h
+++ exscalibar-1.0.4/src/qtextra/qsocketsession.h
@@ -11,7 +11,13 @@
#define __QSOCKETSESSION_H
// TODO: may need compatibility fixes.
-#include <byteswap.h>
+#ifdef __FreeBSD__
+# include <sys/endian.h>
+# define bswap_32 __bswap32
+# define bswap_16 __bswap16
+#else
+# include <byteswap.h>
+#endif
#include <stdint.h>
|