Sam James via Postfix-users:
> Hi,
> 
> Apologies if this was reported already.
> 
> Upcoming GCC 15 defaults to -std=gnu23 with which Postfix fails to build.
> 
> As reported at https://bugs.gentoo.org/945733, with postfix-3.9.0, we
> get:
> ./mail_params.h:17:13: error: two or more data types in declaration specifiers
>    17 | typedef int bool;

Will Postfix build if you replace that line with:

    #define bool int

C23 added a few reserved words (bool, true, false). With the older
C99, these were defined in an optional stdbool.h header file, which
Postfix does not use.

The file mail_params.h is usually included after the system header
files so the above #define will not change the definitions in those
files.

Unfortunately, test code under #ifdef TEST sometimes includes
additional system header files, and those definitions may be changed.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to