https://gcc.gnu.org/g:aa9f12e58ddc2298a253cc6e1343ad7e2eb9bcad
commit r15-5744-gaa9f12e58ddc2298a253cc6e1343ad7e2eb9bcad Author: Jonathan Wakely <jwak...@redhat.com> Date: Wed Nov 27 14:10:34 2024 +0000 libstdc++: Include <sys/cdefs.h> in os_defines.h for FreeBSD [PR117210] This is needed so that __LONG_LONG_SUPPORTED is defined before we depend on it. libstdc++-v3/ChangeLog: PR libstdc++/117210 * config/os/bsd/dragonfly/os_defines.h: Include <sys/cdefs.h>. * config/os/bsd/freebsd/os_defines.h: Likewise. Diff: --- libstdc++-v3/config/os/bsd/dragonfly/os_defines.h | 2 ++ libstdc++-v3/config/os/bsd/freebsd/os_defines.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libstdc++-v3/config/os/bsd/dragonfly/os_defines.h b/libstdc++-v3/config/os/bsd/dragonfly/os_defines.h index e030fa3dc872..9c5aaabc90f3 100644 --- a/libstdc++-v3/config/os/bsd/dragonfly/os_defines.h +++ b/libstdc++-v3/config/os/bsd/dragonfly/os_defines.h @@ -29,6 +29,8 @@ // System-specific #define, typedefs, corrections, etc, go here. This // file will come before all others. +#include <sys/cdefs.h> // For __LONG_LONG_SUPPORTED + #define _GLIBCXX_USE_C99 1 #define _GLIBCXX_USE_C99_STDIO 1 #define _GLIBCXX_USE_C99_STDLIB 1 diff --git a/libstdc++-v3/config/os/bsd/freebsd/os_defines.h b/libstdc++-v3/config/os/bsd/freebsd/os_defines.h index 0d63ae6cec4c..125dfdc18885 100644 --- a/libstdc++-v3/config/os/bsd/freebsd/os_defines.h +++ b/libstdc++-v3/config/os/bsd/freebsd/os_defines.h @@ -29,6 +29,8 @@ // System-specific #define, typedefs, corrections, etc, go here. This // file will come before all others. +#include <sys/cdefs.h> // For __LONG_LONG_SUPPORTED + #define _GLIBCXX_USE_C99_STDIO 1 #define _GLIBCXX_USE_C99_STDLIB 1 #define _GLIBCXX_USE_C99_WCHAR 1