File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ include(cmake/cpprest_find_boost.cmake)
62
62
include (cmake/cpprest_find_zlib.cmake )
63
63
include (cmake/cpprest_find_openssl.cmake )
64
64
include (cmake/cpprest_find_websocketpp.cmake )
65
+ include (CheckIncludeFiles )
65
66
66
67
find_package (Threads REQUIRED )
67
68
if (THREADS_HAVE_PTHREAD_ARG )
@@ -76,6 +77,7 @@ if(CPPREST_EXCLUDE_WEBSOCKETS)
76
77
set (CPPREST_WEBSOCKETS_IMPL none CACHE STRING "Internal use." )
77
78
endif ()
78
79
80
+ CHECK_INCLUDE_FILES (xlocale.h HAVE_XLOCALE_H )
79
81
if (APPLE ) # Note: also iOS
80
82
set (CPPREST_PPLX_IMPL apple CACHE STRING "Internal use." )
81
83
set (CPPREST_WEBSOCKETS_IMPL wspp CACHE STRING "Internal use." )
Original file line number Diff line number Diff line change 19
19
#include < system_error>
20
20
#include < random>
21
21
#include < locale.h>
22
-
23
22
#include " pplx/pplxtasks.h"
24
23
#include " cpprest/details/basic_types.h"
25
24
28
27
#endif
29
28
30
29
#ifndef _WIN32
30
+ #include < sys/time.h>
31
31
#include < boost/algorithm/string.hpp>
32
- #if !defined(ANDROID) && !defined(__ANDROID__) && ! defined(__GLIBC__ ) // CodePlex 269
32
+ #if !defined(ANDROID) && !defined(__ANDROID__) && defined(HAVE_XLOCALE_H ) // CodePlex 269
33
33
/* Systems using glibc: xlocale.h has been removed from glibc 2.26
34
34
The above include of locale.h is sufficient
35
35
Further details: https://sourceware.org/git/?p=glibc.git;a=commit;h=f0be25b6336db7492e47d2e8e72eb8af53b5506d */
You can’t perform that action at this time.
0 commit comments