diff --git a/xrdp.spec b/xrdp.spec index fcd8055..0abe369 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -13,6 +13,10 @@ %global _with_imlib2 --with-imlib2 %endif +%if ! 0%{?fedora} && 0%{?rhel} <= 7 +%global _missing_braces -Wno-error=missing-braces +%endif + Summary: Open source remote desktop protocol (RDP) server Name: xrdp Epoch: 1 @@ -111,7 +115,7 @@ echo '#!/bin/bash -l . %{_libexecdir}/xrdp/startwm.sh' > sesman/startwm-bash.sh %build -CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" \ +CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations %{?_missing_braces}" \ %configure --enable-fuse --enable-pixman --enable-painter --enable-vsock \ --enable-ipv6 --with-socketdir=%{_rundir}/%{name} %{?_with_imlib2} %make_build