sqlite-vec icon indicating copy to clipboard operation
sqlite-vec copied to clipboard

sqlite-vec.c is missing "#include <sys/types.h>"

Open yurivict opened this issue 7 months ago • 1 comments

Compilation errors:

sqlite-vec.c:68:9: error: unknown type name 'u_int8_t'
   68 | typedef u_int8_t uint8_t;
      |         ^
sqlite-vec.c:69:9: error: unknown type name 'u_int16_t'
   69 | typedef u_int16_t uint16_t;
      |         ^
sqlite-vec.c:70:9: error: unknown type name 'u_int64_t'
   70 | typedef u_int64_t uint64_t;
      |         ^
3 errors generated.

Version: 0.1.9 clang-19 FreeBSD 15 STABLE

yurivict avatar May 03 '26 17:05 yurivict

Same three lines as #314, and they're gone on main.

typedef u_int8_t uint8_t; and friends at sqlite-vec.c:68-70 were removed in 85cf4153972c2848831655bafd57cb5e03c5b20d ("Remove dead typedef macros and harmful u_int*_t redefinitions", 2026-03-31), first released in v0.1.10-alpha.2. This report is against 0.1.9, which predates it. grep -rn 'u_int[0-9]*_t' *.c on main returns nothing, so the #include <sys/types.h> the title asks for is no longer needed either — the offending redefinitions are simply gone.

I verified this by reading the source and the history, not by building on FreeBSD 15, so a confirmation on the actual platform would be worth having before closing.

realgetOff avatar Aug 04 '26 11:08 realgetOff