[hostinfo] Fix build on FreeBSD (include order)

- while here apply coding style again
This commit is contained in:
Adriaan de Groot 2019-11-08 00:13:06 +01:00
parent 5c7acdeb44
commit cec84ee42b
2 changed files with 5 additions and 4 deletions

View File

@ -31,8 +31,9 @@
#endif
#ifdef Q_OS_FREEBSD
#include <sys/sysctl.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
HostInfoJob::HostInfoJob( QObject* parent )

View File

@ -27,20 +27,20 @@
#include <QVariantMap>
/** @brief the compile-time host OS
*
*
* Returns "FreeBSD" or "Linux" or empty.
*/
QString hostOS();
/** @brief the run-time host OS
*
*
* Returns os-release NAME information, or if that is blank or not available,
* the same as hostOS().
*/
QString hostOSName();
/** @brief the run-time CPU architecture
*
*
* Returns "Intel" or "AMD" or blank, if Calamares can determine what
* CPU is currently in use (based on /proc/cpuinfo or hw.model).
*/