From cb11aaa2a0513e0ff424e0d4c2ae899164e7a0b1 Mon Sep 17 00:00:00 2001 From: barracuda156 Date: Mon, 21 Nov 2022 01:13:02 +0800 Subject: [PATCH 2/2] core_unix_stubs.c: add legacysupport header for strnlen --- a/core_unix/src/dune 2023-04-25 21:12:26.000000000 +0800 +++ b/core_unix/src/dune 2024-07-06 22:50:49.000000000 +0800 @@ -1,10 +1,10 @@ (library (name core_unix) (public_name core_unix) (libraries core error_checking_mutex core_kernel.flags sexplib.unix - signal_unix spawn) - (c_flags (:standard -D_LARGEFILE64_SOURCE) ()) + signal_unix spawn) (c_library_flags -lMacportsLegacySupport) + (c_flags (:standard -D_LARGEFILE64_SOURCE) -I@PREFIX@/include/LegacySupport ()) (c_names nss_stubs timespec core_unix_stubs core_unix_time_stubs) (preprocess (pps ppx_jane ppx_optcomp)) (preprocessor_deps config.h)) (rule (targets config.h thread_id.h) (deps) (action - (bash "cp %{lib:jst-config:config.h} %{lib:jst-config:thread_id.h} ."))) \ No newline at end of file + (bash "cp %{lib:jst-config:config.h} %{lib:jst-config:thread_id.h} .")))