blob: c84172966ae50d94a1ae4b6fd38b2fe99bd5257d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From: Wouter Verhelst <w@uter.be>
Date: Tue, 1 Dec 2015 13:59:27 +0100
Subject: [PATCH] Don't make the readit() function depend on WORDS_BIGENDIAN
We had accidentally moved the readit() function to the wrong location in
this cliserv file, which meant that it wouldn't be compiled in if
WORDS_BIGENDIAN was defined.
Fix that.
---
cliserv.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cliserv.c b/cliserv.c
index 93835f9800af..241aa556ed26 100644
--- a/cliserv.c
+++ b/cliserv.c
@@ -81,6 +81,7 @@ u64 ntohll(u64 a) {
hi = ntohl(hi);
return ((u64) lo) << 32U | hi;
}
+#endif
/**
* Read data from a file descriptor into a buffer
@@ -103,5 +104,3 @@ void readit(int f, void *buf, size_t len) {
}
}
}
-
-#endif
|