xfwp: Fix build using: env.append_flags('CPPFLAGS', '-D_GNU_SOURCE') (#26157)

Without -D_GNU_SOURCE, the build of xfwp has many compilation errors.
Example: io.c:1039:7: error: implicit declaration of function 'swab'
This commit is contained in:
bernhardkaindl 2021-09-26 10:29:43 +02:00 committed by GitHub
parent 7189a69c70
commit 9a64a229a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,5 +21,7 @@ class Xfwp(AutotoolsPackage, XorgPackage):
depends_on('pkgconfig', type='build')
depends_on('util-macros', type='build')
# FIXME: fails with the error message:
# Fixes this and a long list of other compilation errors:
# io.c:1039:7: error: implicit declaration of function 'swab'
def setup_build_environment(self, env):
env.append_flags('CPPFLAGS', '-D_GNU_SOURCE')