Merge pull request #38177 from dtzWill/fix/sddm-missing-include

sddm: add missing include for gettimeofday, fix w/musl
This commit is contained in:
Will Dietz 2018-03-31 01:23:25 -05:00 committed by GitHub
commit ba6299ee2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,10 @@ in mkDerivation rec {
# Module Qt5::Test must be included in `find_package` before it is used.
''
sed -i CMakeLists.txt -e '/find_package(Qt5/ s|)| Test)|'
''
# Fix missing include for gettimeofday()
+ ''
sed -e '1i#include <sys/time.h>' -i src/helper/HelperApp.cpp
'';
nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig qttools ];