]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: buffers: buf.h requires unistd to get ssize_t on libmusl
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 18:41:40 +0000 (19:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 18:49:21 +0000 (19:49 +0100)
commita7280a1ec2ebb99f19ebf55f6875f04bc9a44085
tree337405d38f321c60a27a7fff39bbd8035f2645c5
parent6689609090aa7f9ce7b7e84b4f9625db77467ae2
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.
include/common/buf.h
include/common/ist.h
include/common/memory.h
include/proto/htx.h