]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: Missing inclusion header for ssize_t type
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 26 Jun 2024 08:17:09 +0000 (10:17 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 26 Jun 2024 08:17:09 +0000 (10:17 +0200)
Compilation issue detected as follows by gcc:

In file included from src/ncbuf.c:19:
src/ncbuf.c: In function 'ncb_write_off':
include/haproxy/bug.h:144:10: error: unknown type name 'ssize_t'
  144 |   extern ssize_t write(int, const void *, size_t); \

include/haproxy/bug.h

index 8ca6415a1b1ed84f849fe1f0b07dd436764875d5..f45fe347b46b0810b74d4cd504a16b6a51324829 100644 (file)
@@ -29,6 +29,7 @@
 #define _HAPROXY_BUG_H
 
 #include <stddef.h>
+#include <sys/types.h>
 #include <haproxy/atomic.h>
 #include <haproxy/compiler.h>