tools/cmake: fix compile on Alpine Linux
[openwrt/openwrt.git] / tools / cmake / patches / 120-alpine_musl-compat.patch
1 --- a/Utilities/cmjsoncpp/include/json/assertions.h
2 +++ b/Utilities/cmjsoncpp/include/json/assertions.h
3 @@ -6,12 +6,12 @@
4 #ifndef CPPTL_JSON_ASSERTIONS_H_INCLUDED
5 #define CPPTL_JSON_ASSERTIONS_H_INCLUDED
6
7 +#include <stdlib.h>
8 +
9 #if !defined(JSON_IS_AMALGAMATION)
10 #include "config.h"
11 #endif // if !defined(JSON_IS_AMALGAMATION)
12
13 -#include <stdlib.h>
14 -
15 #if JSON_USE_EXCEPTION
16 #include <stdexcept>
17 #define JSON_ASSERT(condition) \