]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix builds on Windows.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 5 Mar 2014 21:22:12 +0000 (21:22 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 5 Mar 2014 21:22:12 +0000 (21:22 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.7@11689 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/usersys.c

index 695138d822eaad4070e7add80948e3b71a26a6d7..4b233ee7e006d9cd36e4341c833d3542b6ea6c7f 100644 (file)
@@ -854,6 +854,7 @@ _cupsSetDefaults(void)
 
   if ((cups_user = getenv("CUPS_USER")) == NULL)
   {
+#ifndef WIN32
    /*
     * Try the USER environment variable...
     */
@@ -871,6 +872,7 @@ _cupsSetDefaults(void)
       if ((pw = getpwnam(cups_user)) == NULL || pw->pw_uid != getuid())
         cups_user = NULL;
     }
+#endif /* !WIN32 */
   }
 
  /*