From 0f1886872362135467d7219e08fa7120dd73bee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 2 Mar 2020 15:52:28 +0100 Subject: [PATCH] test-sizeof: print size socklen_t It returns 32 bits, unsigned on amd64, so it's probably similar everywhere with glibc. But let's make the code generic, without assuming specific size or signedness. --- src/test/test-sizeof.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c index 7fc16a62b6..1020e0cb31 100644 --- a/src/test/test-sizeof.c +++ b/src/test/test-sizeof.c @@ -3,6 +3,8 @@ #include #include #include +#include +#include #define __STDC_WANT_IEC_60559_TYPES_EXT__ #include @@ -65,6 +67,7 @@ int main(void) { info(pid_t); info(uid_t); info(gid_t); + info(socklen_t); info(__cpu_mask);