File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 71
71
*/
72
72
#cmakedefine01 HAVE_DECL_SETSID
73
73
74
- /* Define this symbol if evhttp_connection_get_peer expects const char** */
75
- #cmakedefine HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR 1
76
-
77
74
/* Define to 1 if fdatasync is available. */
78
75
#cmakedefine HAVE_FDATASYNC 1
79
76
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ function(check_evhttp_connection_get_peer target)
35
35
" HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR
36
36
)
37
37
cmake_pop_check_state ()
38
- set (HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR ${HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR} PARENT_SCOPE )
38
+ target_compile_definitions (${target} INTERFACE
39
+ $< $< BOOL:${HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR} > :HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR>
40
+ )
39
41
endfunction ()
40
42
41
43
set (_libevent_components core extra )
Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- #include < bitcoin-build-config.h> // IWYU pragma: keep
6
-
7
5
#include < httpserver.h>
8
6
9
7
#include < chainparamsbase.h>
You can’t perform that action at this time.
0 commit comments