File tree Expand file tree Collapse file tree 5 files changed +4
-19
lines changed Expand file tree Collapse file tree 5 files changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -197,15 +197,6 @@ check_function_exists(strlcpy HAVE_STRLCPY)
197
197
check_function_exists (sysconf HAVE_SYSCONF )
198
198
check_function_exists (arc4random HAVE_ARC4RANDOM )
199
199
200
- if (NOT HAVE_STRLCPY AND NOT HAVE_GETPROGNAME )
201
- include (FindPkgConfig )
202
- pkg_check_modules (BSD_OVERLAY libbsd-overlay )
203
- if (BSD_OVERLAY_FOUND )
204
- set (HAVE_STRLCPY 1 CACHE INTERNAL "Have function strlcpy" FORCE )
205
- set (HAVE_GETPROGNAME 1 CACHE INTERNAL "Have function getprogname" FORCE )
206
- endif ()
207
- endif ()
208
-
209
200
find_package (Threads REQUIRED )
210
201
211
202
check_include_files ("TargetConditionals.h" HAVE_TARGETCONDITIONALS_H )
Original file line number Diff line number Diff line change @@ -204,11 +204,6 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL Android)
204
204
PRIVATE
205
205
-U_GNU_SOURCE )
206
206
endif ()
207
- if (BSD_OVERLAY_FOUND )
208
- target_compile_options (dispatch
209
- PRIVATE
210
- ${BSD_OVERLAY_CFLAGS} )
211
- endif ()
212
207
if ("${CMAKE_C_SIMULATE_ID} " STREQUAL "MSVC" )
213
208
target_compile_options (dispatch
214
209
PRIVATE
@@ -230,9 +225,6 @@ else()
230
225
-fblocks
231
226
-momit-leaf-frame-pointer )
232
227
endif ()
233
- if (BSD_OVERLAY_FOUND )
234
- target_link_libraries (dispatch PRIVATE ${BSD_OVERLAY_LDFLAGS} )
235
- endif ()
236
228
if (LibRT_FOUND )
237
229
target_link_libraries (dispatch PRIVATE RT::rt )
238
230
endif ()
Original file line number Diff line number Diff line change @@ -282,8 +282,10 @@ upcast(dispatch_object_t dou)
282
282
#include < linux/sysctl.h>
283
283
#else
284
284
#include < sys/sysctl.h>
285
- #include < sys/queue.h>
286
285
#endif /* __ANDROID__ */
286
+ #if !defined(__linux__)
287
+ #include < sys/queue.h>
288
+ #endif
287
289
#include < sys/socket.h>
288
290
#include < sys/time.h>
289
291
#include < sys/mman.h>
Original file line number Diff line number Diff line change 33
33
#include "shims/generic_win_stubs.h"
34
34
#endif // defined(_WIN32)
35
35
36
- #if defined(_WIN32 ) || defined(__ANDROID__ )
36
+ #if defined(_WIN32 ) || defined(__linux__ )
37
37
#include "shims/generic_sys_queue.h"
38
38
#endif
39
39
File renamed without changes.
You can’t perform that action at this time.
0 commit comments