From: msweet Date: Wed, 5 Mar 2014 21:22:12 +0000 (+0000) Subject: Fix builds on Windows. X-Git-Tag: release-2.1.4~16^2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16a3c06507e28a67c94f34664188afe3a65cf20e;p=thirdparty%2Fcups.git Fix builds on Windows. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.7@11689 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/usersys.c b/cups/usersys.c index 695138d822..4b233ee7e0 100644 --- a/cups/usersys.c +++ b/cups/usersys.c @@ -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 */ } /*