- scheduler: compile fixes for FCGI

svn path=/trunk/boinc/; revision=25955
This commit is contained in:
David Anderson 2012-08-02 16:17:10 +00:00
parent 29d5781a34
commit c4b337d276
5 changed files with 25 additions and 11 deletions

View File

@ -5173,3 +5173,14 @@ Charlie 2 Aug 2012
make_CharityEngine.sh make_CharityEngine.sh
make_GridRepublic.sh make_GridRepublic.sh
make_ProgThruProc.sh make_ProgThruProc.sh
David 2 Aug 2012
- scheduler: compile fixes for FCGI
sched/
hr_info.cpp
html/inc/
forum.inc
lib/
util.cpp
filesys.cpp

View File

@ -318,7 +318,7 @@ function show_posts(
$thread, $forum, $start, $postid, $sort_style, $filter, $logged_in_user $thread, $forum, $start, $postid, $sort_style, $filter, $logged_in_user
) { ) {
$n = 1; $n = 1;
$num_to_show = 20; $num_to_show = 20;
if ($logged_in_user && $logged_in_user->prefs->display_wrap_postcount > 0) { if ($logged_in_user && $logged_in_user->prefs->display_wrap_postcount > 0) {
$num_to_show = $logged_in_user->prefs->display_wrap_postcount; $num_to_show = $logged_in_user->prefs->display_wrap_postcount;

View File

@ -15,8 +15,6 @@
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>. // along with BOINC. If not, see <http://www.gnu.org/licenses/>.
#include "filesys.h"
#if defined(_WIN32) && !defined(__STDWX_H__) #if defined(_WIN32) && !defined(__STDWX_H__)
#include "boinc_win.h" #include "boinc_win.h"
#elif defined(_WIN32) && defined(__STDWX_H__) #elif defined(_WIN32) && defined(__STDWX_H__)
@ -63,7 +61,7 @@
#if HAVE_SYS_STATVFS_H #if HAVE_SYS_STATVFS_H
#include <sys/statvfs.h> #include <sys/statvfs.h>
#define STATFS statvfs #define STATFS statvfs
#elif defined(HAVE_SYS_STATFS_H) #elif HAVE_SYS_STATFS_H
#include <sys/statfs.h> #include <sys/statfs.h>
#define STATFS statfs #define STATFS statfs
#else #else
@ -75,6 +73,7 @@
#include "str_util.h" #include "str_util.h"
#include "str_replace.h" #include "str_replace.h"
#include "error_numbers.h" #include "error_numbers.h"
#include "filesys.h"
#ifdef _WIN32 #ifdef _WIN32
typedef BOOL (CALLBACK* FreeFn)(LPCSTR, PULARGE_INTEGER, PULARGE_INTEGER, PULARGE_INTEGER); typedef BOOL (CALLBACK* FreeFn)(LPCSTR, PULARGE_INTEGER, PULARGE_INTEGER, PULARGE_INTEGER);

View File

@ -15,6 +15,10 @@
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>. // along with BOINC. If not, see <http://www.gnu.org/licenses/>.
#ifdef _USING_FCGI_
#include "boinc_fcgi.h"
#endif
#include "util.h" #include "util.h"
#if defined(_WIN32) && !defined(__STDWX_H__) #if defined(_WIN32) && !defined(__STDWX_H__)
@ -55,11 +59,6 @@ extern "C" {
#endif #endif
#endif #endif
#ifdef _USING_FCGI_
#include "boinc_fcgi.h"
#define perror FCGI::perror
#endif
#include "error_numbers.h" #include "error_numbers.h"
#include "common_defs.h" #include "common_defs.h"
#include "filesys.h" #include "filesys.h"
@ -439,7 +438,11 @@ int run_program(
if (retval) return retval; if (retval) return retval;
} }
execv(file, argv); execv(file, argv);
#ifdef _USING_FCGI_
FCGI::perror("execv");
#else
perror("execv"); perror("execv");
#endif
exit(errno); exit(errno);
} }

View File

@ -14,6 +14,9 @@
// //
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>. // along with BOINC. If not, see <http://www.gnu.org/licenses/>.
#include "hr_info.h"
#ifndef _USING_FCGI_ #ifndef _USING_FCGI_
#include <cstdio> #include <cstdio>
#else #else
@ -27,8 +30,6 @@
#include "error_numbers.h" #include "error_numbers.h"
#include "sched_msgs.h" #include "sched_msgs.h"
#include "hr_info.h"
int HR_INFO::write_file() { int HR_INFO::write_file() {
int i, j; int i, j;