diff options
author | A. Wilcox <awilfox@adelielinux.org> | 2018-08-31 10:26:28 +0200 |
---|---|---|
committer | David Faure <faure@kde.org> | 2018-08-31 10:26:28 +0200 |
commit | 6684cb99bdf408fc491e547393dbd7aac4d151f2 (patch) | |
tree | 1e1324da6b2b43eccd09e831ba8170b0f7f7fe74 /find-modules/FindPythonModuleGeneration.cmake | |
parent | 206c5123c37eabf3f2d0611aebc52f95beb9e760 (diff) | |
download | extra-cmake-modules-6684cb99bdf408fc491e547393dbd7aac4d151f2.tar.gz extra-cmake-modules-6684cb99bdf408fc491e547393dbd7aac4d151f2.tar.bz2 |
Add _XOPEN_SOURCE to C definitions
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:
* kinit
* 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.
BUG: 373175
Differential Revision: https://phabricator.kde.org/D8256
Diffstat (limited to 'find-modules/FindPythonModuleGeneration.cmake')
0 files changed, 0 insertions, 0 deletions