On Wed, 2022-10-26 at 14:18 +0200, Milan Crha wrote:
when I compile it as:
gcc -std=c99 -Wall -Wextra test.c -o test -ldb
I get an error:
In file included from test.c:1:
/usr/include/db.h:1098:9: error: unknown type name ‘u_int’
and tons of related warning/error lines generated by gcc.
Hi again,
I just figured that compiling with:
gcc -std=c99 -Wall -Wextra -D_DEFAULT_SOURCE=1 test.c -o test -ldb
makes it work. I've no idea where I should add that define, CFLAGS
feels too brutal for it.
Bye,
Milan