From: msweet Date: Wed, 12 Nov 2014 15:31:47 +0000 (+0000) Subject: Fix compiles on unsupported platforms (STR #4510) X-Git-Tag: v2.2b1~444 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b3b9aa995a67ee29fbb3486fd43e66b53ce0f2a;p=thirdparty%2Fcups.git Fix compiles on unsupported platforms (STR #4510) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12246 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES-2.0.txt b/CHANGES-2.0.txt index 41e5fca203..088403a15f 100644 --- a/CHANGES-2.0.txt +++ b/CHANGES-2.0.txt @@ -24,6 +24,7 @@ CHANGES IN CUPS V2.0.1 (STR #4503) - RPMs did not build (STR #4490) - Added a USB quirk rule for the Brother HL-1250 (STR #4519) + - Fixed compiles on unsupported platforms (STR #4510) CHANGES IN CUPS V2.0.0 diff --git a/scheduler/process.c b/scheduler/process.c index 788bcc396f..62f9b862aa 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -459,15 +459,15 @@ cupsdStartProcess( int i; /* Looping var */ const char *exec_path = command; /* Command to be exec'd */ char *real_argv[110], /* Real command-line arguments */ - cups_exec[1024]; /* Path to "cups-exec" program */ + cups_exec[1024], /* Path to "cups-exec" program */ + user_str[16], /* User string */ + group_str[16], /* Group string */ + nice_str[16]; /* FilterNice string */ uid_t user; /* Command UID */ cupsd_proc_t *proc; /* New process record */ #ifdef HAVE_POSIX_SPAWN posix_spawn_file_actions_t actions; /* Spawn file actions */ posix_spawnattr_t attrs; /* Spawn attributes */ - char user_str[16], /* User string */ - group_str[16], /* Group string */ - nice_str[16]; /* FilterNice string */ #elif defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* POSIX signal handler */ #endif /* HAVE_POSIX_SPAWN */