Merge pull request #1103 from Absolight/freebsd-port

Patches for FreeBSD
This commit is contained in:
Daniel Molkentin 2013-10-16 08:52:46 -07:00
commit a06e551469
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ if(SPHINX_FOUND)
-D latex_logo=${LATEX_LOGO}
${CMAKE_CURRENT_SOURCE_DIR}
${SPHINX_PDF_DIR} )
add_custom_target(doc-pdf make -C ${SPHINX_PDF_DIR} all-pdf
add_custom_target(doc-pdf $(MAKE) -C ${SPHINX_PDF_DIR} all-pdf
DEPENDS doc-latex )
add_dependencies(doc doc-pdf)
if (WITH_DOC)

View file

@ -163,7 +163,7 @@ void Utility::setLaunchOnStartup(const QString &appName, const QString& guiName,
qint64 Utility::freeDiskSpace(const QString &path, bool *ok)
{
#ifdef Q_OS_MAC
#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD)
struct statvfs stat;
statvfs(path.toUtf8().data(), &stat);
return (qint64) stat.f_bavail * stat.f_frsize;