[Bug 260251] static_assert not defined

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Dec 2021 11:38:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260251

Jan Beich <jbeich@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jbeich@FreeBSD.org
         Resolution|Works As Intended           |DUPLICATE

--- Comment #2 from Jan Beich <jbeich@FreeBSD.org> ---
wlroots itself doesn't use C++, so 14.0-CURRENT was already fixed.
https://www.freebsd.org/releases/14.0R/schedule/ hasn't been populated yet, so
-RELEASE is at least 1 year away.

On older versions one can do something like

  #if defined(__FreeBSD__) && __FreeBSD__ < 14
  #undef _POSIX_C_SOURCE
  #endif

or

  #ifdef __FreeBSD__
  #include <osreldate.h>
  # if __FreeBSD_version < 1400014
  #undef _POSIX_C_SOURCE
  # endif
  #endif

*** This bug has been marked as a duplicate of bug 255290 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.