summaryrefslogtreecommitdiff
path: root/palm/synce-vdccm/files/patch-src_rapiconnection.cpp
blob: 6e71e8857f0320bb6c1c54873704d0e42f9f25d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/rapiconnection.cpp.orig	2008-04-15 11:39:02.000000000 +0200
+++ src/rapiconnection.cpp	2008-04-15 11:39:14.000000000 +0200
@@ -22,6 +22,12 @@
 #include "synce_log.h"
 #include <multiplexer.h>
 
+#if defined(__FreeBSD__) && defined(__sparc64__)
+#include <sys/endian.h>
+#define bswap_16 bswap16
+#define bswap_32 bswap32
+#endif
+
 using namespace std;
 
 RapiConnection::RapiConnection(RapiProxyFactory *proxyFactory, string path, RapiServer *rapiServer, string deviceIpAddress) : LocalServerSocket(proxyFactory, path), rapiHandshakeClient(NULL), deviceIpAddress(deviceIpAddress), rapiServer(rapiServer)