From 5a2cb5d8de1eb92d39699f5e2aeb94d3cae4f2b0 Mon Sep 17 00:00:00 2001 From: ahgamut Date: Tue, 25 Oct 2022 08:13:09 +0530 Subject: [PATCH] check existence of IFNAMSIZ IFNAMSIZ is defined in: - libc/sock/if.h - libc/sock/struct/ifreq.h we add a check in the latter to avoid a complaint when using the amalgamated header. --- libc/sock/struct/ifreq.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/sock/struct/ifreq.h b/libc/sock/struct/ifreq.h index 3a3bd7209..9424276e8 100644 --- a/libc/sock/struct/ifreq.h +++ b/libc/sock/struct/ifreq.h @@ -5,7 +5,9 @@ COSMOPOLITAN_C_START_ #define IF_NAMESIZE 16 +#ifndef IFNAMSIZ #define IFNAMSIZ IF_NAMESIZE +#endif struct ifreq { union {