X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpackagemanager.cpp;h=2ee3c30de63f67bca4f649d27326d9b97e05d4f1;hb=76ede1d44e68182a2380260c22ec7be68c9817af;hp=2319c5a906022ffab072e09eb87531e888d08d95;hpb=21ca3e98081c0dc0430d8e5301591aa71ec4fca2;p=builder.git diff --git a/source/packagemanager.cpp b/source/packagemanager.cpp index 2319c5a..2ee3c30 100644 --- a/source/packagemanager.cpp +++ b/source/packagemanager.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include "binarypackage.h" #include "builder.h" @@ -125,6 +125,7 @@ Package *PackageManager::find_package(const string &name) string PackageManager::run_pkgconfig(const string &pkg, const string &what) { +#ifndef _WIN32 if(!env_set) { const FS::Path &prefix = builder.get_prefix(); @@ -166,6 +167,11 @@ string PackageManager::run_pkgconfig(const string &pkg, const string &what) builder.get_logger().log("auxcommands", format("Running %s", join(argv.begin(), argv.end()))); return ExternalTask::run_and_capture_output(argv); +#else + (void)pkg; + (void)what; + return string(); +#endif } FS::Path PackageManager::get_package_location(const string &name)