Browse Source

ci: define size_t/ptrdiff_t/ssize_t for fuse-bpf via compiler builtins

TheWildJames 2 weeks ago
parent
commit
5d0d3b25a7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      .github/actions/fuse-bpf/action.yml

+ 3 - 0
.github/actions/fuse-bpf/action.yml

@@ -71,6 +71,9 @@ runs:
           'typedef signed short         int16_t;' \
           'typedef signed int           int32_t;' \
           'typedef signed long long     int64_t;' \
+          'typedef __SIZE_TYPE__        size_t;' \
+          'typedef __PTRDIFF_TYPE__     ptrdiff_t;' \
+          'typedef __SSIZE_TYPE__       ssize_t;' \
           '#endif' > "$GEN_DIR/usr/include/types_override.h"
         for d in asm-generic linux mtd rdma sound video; do
           if [ -d "$KSRC/include/uapi/$d" ]; then