BUILD: buffers: buf.h requires unistd to get ssize_t on libmusl
Building with musl and gcc-5.3 for MIPS returns this :
include/common/buf.h: In function 'b_dist':
include/common/buf.h:252:2: error: unknown type name 'ssize_t'
ssize_t dist = to - from;
^
Including stdint or stddef is not sufficient there to get ssize_t,
unistd is needed as well. It's likely that other platforms will have
the same issue. This patch also addresses it in ist.h and memory.h.
diff --git a/include/common/buf.h b/include/common/buf.h
index d39de71..cc670bf 100644
--- a/include/common/buf.h
+++ b/include/common/buf.h
@@ -30,6 +30,7 @@
#include <stdint.h>
#include <string.h>
+#include <unistd.h>
/* Structure defining a buffer's head */
struct buffer {