https://bugs.kde.org/show_bug.cgi?id=373175

            Bug ID: 373175
           Summary: _XOPEN_SOURCE needs to be defined when using
                    -std=iso9899:1990
           Product: extra-cmake-modules
           Version: 5.28.0
          Platform: Compiled Sources
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: alex.me...@kde.org
          Reporter: awil...@adelielinux.org
                CC: ecm-bugs-n...@kde.org
  Target Milestone: ---

Created attachment 102573
  --> https://bugs.kde.org/attachment.cgi?id=102573&action=edit
KDECompilerSettings: Ensure POSIX correctness

When building on non-glibc Unix platforms, such as Solaris, NetBSD, and
Linux/musl or Linux/uclibc, multiple components of KF5 fail to build.  This is
because -std=iso9899:1990 is specified (for strict C90 compliance) but
_XOPEN_SOURCE is not defined, so none of the POSIX interfaces are exported.  I
have seen this reported in at least:

* kscreenlocker
* plasma-workspace

The attached patch resolves this issue on all our build boxes; additionally,
applying it to my glibc builder did not change the already working result.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to