From ad8a91159086d26236c805bbdf5aded6f436e07a Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 2 Oct 2017 22:42:56 +0100 Subject: [PATCH] #6162 Make --run-as-uid Linux specific --- src/lib/core/ArgParser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/core/ArgParser.cpp b/src/lib/core/ArgParser.cpp index 284de5b3..d68b4a1b 100644 --- a/src/lib/core/ArgParser.cpp +++ b/src/lib/core/ArgParser.cpp @@ -299,9 +299,11 @@ ArgParser::parseGenericArgs(int argc, const char* const* argv, int& i) else if (isArg(i, argc, argv, NULL, "--plugin-dir", 1)) { argsBase().m_pluginDirectory = argv[++i]; } +#if WINAPI_XWINDOWS else if (isArg(i, argc, argv, NULL, "--run-as-uid", 1)) { argsBase().m_runAsUid = std::stoi(argv[++i]); } +#endif else { // option not supported here return false;