Edit

IABSD.fr/ports/lang/wabt/patches/patch-src_tools_wast2json_cc

Branch :

  • Show log

    Commit

  • Author : fcambus
    Date : 2026-05-07 21:46:01
    Hash : 1aebbe53
    Message : Update wabt to 1.0.41.

  • lang/wabt/patches/patch-src_tools_wast2json_cc
  • Index: src/tools/wast2json.cc
    --- src/tools/wast2json.cc.orig
    +++ src/tools/wast2json.cc
    @@ -21,6 +21,9 @@
     #include <cstdlib>
     #include <string>
     
    +#include <err.h>
    +#include <unistd.h>
    +
     #include "wabt/config.h"
     
     #include "wabt/binary-writer-spec.h"
    @@ -96,6 +99,9 @@ int ProgramMain(int argc, char** argv) {
     
       ParseOptions(argc, argv);
     
    +  if (pledge("stdio rpath wpath cpath", NULL) != 0)
    +    err(1, "pledge");
    +  
       std::vector<uint8_t> file_data;
       Result result = ReadFile(s_infile, &file_data);
       Errors errors;