Check for crypt(3), also on FreeBSD

This commit is contained in:
Adriaan de Groot 2017-09-13 22:24:30 +02:00
parent edb1dbaa6e
commit c9f4bc0cc8
3 changed files with 24 additions and 9 deletions

View file

@ -5,7 +5,7 @@ if( ECM_FOUND )
endif()
find_package( Qt5 COMPONENTS Core Test REQUIRED )
find_package( Crypt )
find_package( Crypt REQUIRED )
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )

View file

@ -27,7 +27,11 @@
#include <QDir>
#include <random>
#ifndef NO_CRYPT_H
#include <crypt.h>
#endif
#include <unistd.h>
SetPasswordJob::SetPasswordJob( const QString& userName, const QString& newPassword )