bespoke-silicon-group / bsg_replicant

BSG Replicant: Cosimulation and Emulation Infrastructure for HammerBlade
BSD 3-Clause "New" or "Revised" License
27 stars 21 forks source link

Add missing -D_BSD_SOURCE and -D_DEFAULT_SOURCE flags #837

Closed gaozihou closed 1 day ago

gaozihou commented 1 week ago

-D_BSD_SOURCE flag is needed by glibc version < 2.19 (CentOS 7) -D_DEFAULT_SOURCE flag is needed by glibc version >= 2.19 (Rocky 8, 9)

We need both flags to support all platforms

Reference: glibc 2.19 release note https://lists.gnu.org/archive/html/info-gnu/2014-02/msg00001.html