From 68f56b574022a963a0edec9a7a3add3fe9882bb1 Mon Sep 17 00:00:00 2001 From: robojerk Date: Sun, 7 Sep 2025 17:52:25 -0700 Subject: [PATCH] Fix cxxopts.hpp missing limits include - Add sed command to inject #include at the top of cxxopts.hpp - This fixes the 'numeric_limits is not a member of std' compilation error - The cxxopts.hpp header is missing the required limits include - This is a common issue with C++ headers that don't include all dependencies The build is now successfully compiling most code but failing on this specific missing include in the cxxopts.hpp header file. --- .forgejo/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 7323684..e7f1258 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -119,6 +119,16 @@ jobs: tar -xf fuse-3.10.0.tar.xz cd fuse-3.10.0 + # Fix cxxopts.hpp missing limits include + echo "Fixing cxxopts.hpp missing limits include..." + if [ -f "example/cxxopts.hpp" ]; then + # Add limits include at the top of cxxopts.hpp + sed -i '1i#include ' example/cxxopts.hpp + echo "Added limits include to cxxopts.hpp" + else + echo "cxxopts.hpp not found, skipping fix" + fi + # Build libfuse echo "Current directory: $(pwd)" echo "Contents: $(ls -la)"