1From 37291201ed948e9d65993a717c59bb14f4187e13 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Thu, 5 Aug 2021 19:02:56 +0200
4Subject: [PATCH] include/pistache/typeid.h: include cstddef
5
6Include cstddef to avoid the following build failure with gcc 11:
7
8In file included from /tmp/instance-3/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/src/../include/pistache/async.h:10,
9                 from /tmp/instance-3/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/src/../include/pistache/client.h:9,
10                 from /tmp/instance-3/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/src/client/client.cc:7:
11/tmp/instance-3/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/src/../include/pistache/typeid.h:26:12: error: expected type-specifier before 'size_t'
12   26 |   operator size_t() const { return reinterpret_cast<size_t>(id_); }
13      |            ^~~~~~
14
15Fixes:
16 - http://autobuild.buildroot.org/results/2443559df8c2357476e4cbdbebb08280cbb80a3b
17
18Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
19[Upstream status: https://github.com/pistacheio/pistache/pull/965]
20---
21 include/pistache/typeid.h | 1 +
22 1 file changed, 1 insertion(+)
23
24diff --git a/include/pistache/typeid.h b/include/pistache/typeid.h
25index 10353ca..893e7c1 100644
26--- a/include/pistache/typeid.h
27+++ b/include/pistache/typeid.h
28@@ -7,6 +7,7 @@
29
30 #pragma once
31
32+#include <cstddef>
33 #include <functional>
34
35 namespace Pistache
36--
372.30.2
38
39