blob: 0c3476f630db9bbc9da609eb76cbca9dff199b6d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- a/src/net/requestpacket.c
+++ b/src/net/requestpacket.c
@@ -28,7 +28,13 @@
#include <stdint.h>
#include <string.h>
+#ifdef __FreeBSD__
+#include <sys/endian.h>
+#define __cpu_to_be64 htobe64
+#define __be64_to_cpu be64toh
+#else
#include <asm/byteorder.h>
+#endif
#include "xvdr/xvdrcommand.h"
#include "config/config.h"
|