summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild5
-rw-r--r--dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild5
2 files changed, 8 insertions, 2 deletions
diff --git a/dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild b/dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild
index a51620da4851..4ad16b14b087 100644
--- a/dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild
+++ b/dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
-inherit python-any-r1 meson cmake
+inherit python-any-r1 meson cmake flag-o-matic
SDP="systemd-stable-252.6"
MUSL_PATCHSET="systemd-musl-patches-252.4"
@@ -79,6 +79,9 @@ src_prepare() {
src_configure() {
if ! use systemd; then
+ # Avoid redefinition of struct ethhdr.
+ use elibc_musl && append-cppflags -D__UAPI_DEF_ETHHDR=0
+
EMESON_SOURCE=${SDS} \
BUILD_DIR=${SDB} \
meson_src_configure \
diff --git a/dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild b/dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild
index 14aec38d9337..56e8e1beb44e 100644
--- a/dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild
+++ b/dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
-inherit python-any-r1 meson cmake
+inherit python-any-r1 meson cmake flag-o-matic
SDP="systemd-stable-252.6"
MUSL_PATCHSET="systemd-musl-patches-252.4"
@@ -80,6 +80,9 @@ src_prepare() {
src_configure() {
if ! use systemd; then
+ # Avoid redefinition of struct ethhdr.
+ use elibc_musl && append-cppflags -D__UAPI_DEF_ETHHDR=0
+
EMESON_SOURCE=${SDS} \
BUILD_DIR=${SDB} \
meson_src_configure \