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
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue