swaroop: windows build fix.
[dcpomatic.git] / src / lib / config.cc
index 99115f2d765d7923a043f9e7f7b88d08743a5262..b64690aadf4df86569b3e6a047d223038c1fbbfb 100644 (file)
@@ -233,7 +233,7 @@ void
 Config::read ()
 try
 {
-#ifdef DCPOMATIC_VARIANT_SWAROOP
+#if defined(DCPOMATIC_VARIANT_SWAROOP) && defined(DCPOMATIC_LINUX)
        if (geteuid() == 0) {
                /* Take ownership of the config file if we're root */
                chown (config_file().string().c_str(), 0, 0);