Fix cxxopts.hpp missing limits include
Some checks failed
Build libfuse / Build and Test (push) Failing after 2m21s

- Add sed command to inject #include <limits> 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.
This commit is contained in:
robojerk 2025-09-07 17:52:25 -07:00
parent 21f3452590
commit 68f56b5740

View file

@ -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 <limits>' 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)"