From 41d764eeef8cab157d8aeb12332b8947695701bf Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Sat, 23 Sep 2023 17:58:40 +0200 Subject: [PATCH] parser: fix compilation for macOS Signed-off-by: Simon Rozman --- include/stdex/parser.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/stdex/parser.hpp b/include/stdex/parser.hpp index 48345367f..0b57e2643 100644 --- a/include/stdex/parser.hpp +++ b/include/stdex/parser.hpp @@ -52,6 +52,14 @@ ENUM_FLAG_OPERATOR(T,^) \ ENUM_FLAG_OPERATOR(T,&) \ enum class T : type +#ifndef s6_words +#ifdef __APPLE__ +#define s6_words __u6_addr.__u6_addr16 +#else +#error Unsupported platform +#endif +#endif + namespace stdex { namespace parser