mirror of https://github.com/BOINC/boinc.git
- changes to many files to fix gcc4.3 compile
svn path=/trunk/boinc/; revision=14811
This commit is contained in:
parent
86857a5452
commit
c8384113e4
|
@ -26,6 +26,7 @@
|
|||
#else
|
||||
#include "config.h"
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <cstdarg>
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
#include <cstring>
|
||||
#include "x_opengl.h"
|
||||
|
||||
#include "app_ipc.h"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "shmem.h"
|
||||
#include "filesys.h"
|
||||
#include "app_ipc.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "diagnostics.h"
|
||||
#include "boinc_api.h"
|
||||
#include "graphics_impl.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "boinc_win.h"
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "config.h"
|
||||
#include "app_ipc.h"
|
||||
#include "graphics_impl.h"
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#endif
|
||||
|
||||
#include "config.h"
|
||||
#include <cstring>
|
||||
#include <dlfcn.h>
|
||||
|
||||
#include "boinc_api.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "boinc_win.h"
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "filesys.h"
|
||||
#include "boinc_api.h"
|
||||
|
||||
|
|
|
@ -22,7 +22,8 @@
|
|||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <pthread.h>
|
||||
#include <cstring>
|
||||
#include <signal.h>
|
||||
#include "x_opengl.h"
|
||||
|
||||
|
@ -69,13 +70,13 @@ static bool suspend_render = false;
|
|||
|
||||
// glutGet(GLUT_INIT_STATE) returns freegluts state. Determines
|
||||
// when to call glutInit again to reinitialize it.
|
||||
//
|
||||
//
|
||||
#ifndef GLUT_INIT_STATE
|
||||
#define GLUT_INIT_STATE 0x007C
|
||||
#endif
|
||||
|
||||
// Simple defines for checking freeglut states
|
||||
//
|
||||
//
|
||||
|
||||
// Check whether freeglut is initialized. Necessary
|
||||
// since it deinitializes itself when the window is
|
||||
|
@ -89,7 +90,7 @@ static bool suspend_render = false;
|
|||
// causes SIGABRT, so we hide and reshow windows instead
|
||||
// of creating and deleting them. (Talking freeglut here)
|
||||
// note - make sure glutInit is called before checking,
|
||||
// otherwise freeglut will SIGABRT.
|
||||
// otherwise freeglut will SIGABRT.
|
||||
//
|
||||
#define GLUT_HAVE_WINDOW ((bool)(glutGetWindow()!=0))
|
||||
|
||||
|
@ -98,7 +99,7 @@ static bool suspend_render = false;
|
|||
// and avoid SIGABRTs. Initialize the flag to 'true' and the
|
||||
// init code in boinc_glut_init() will check whether we have
|
||||
// openglut or freeglut, resetting the variable as necessary.
|
||||
//
|
||||
//
|
||||
// Linux systems ship with freeglut, so default is 'true' and
|
||||
// its checked.
|
||||
//
|
||||
|
|
|
@ -1708,3 +1708,6 @@ David Feb 27 2008
|
|||
sched_send.C
|
||||
tools/
|
||||
create_work.C
|
||||
|
||||
David Feb 27 2008
|
||||
- changes to many files to fix gcc4.3 compile
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "parse.h"
|
||||
#include "error_numbers.h"
|
||||
#include "client_msgs.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "client_state.h"
|
||||
#include "file_names.h"
|
||||
#include "parse.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
// or write to the Free Software Foundation, Inc.,
|
||||
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
#include <cstring>
|
||||
#include "parse.h"
|
||||
#include "error_numbers.h"
|
||||
#include "filesys.h"
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <cstdarg>
|
||||
#include <cstring>
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <zlib.h>
|
||||
#include <cstring>
|
||||
#endif
|
||||
|
||||
#include "error_numbers.h"
|
||||
|
|
|
@ -34,4 +34,5 @@
|
|||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#endif
|
||||
|
|
|
@ -41,17 +41,20 @@
|
|||
#include "boinc_win.h"
|
||||
#endif
|
||||
|
||||
#ifdef SIM
|
||||
#include "sim.h"
|
||||
#else
|
||||
#include "client_state.h"
|
||||
#endif
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include "client_msgs.h"
|
||||
#include "str_util.h"
|
||||
#include "util.h"
|
||||
#include "error_numbers.h"
|
||||
#include "log_flags.h"
|
||||
|
||||
#ifdef SIM
|
||||
#include "sim.h"
|
||||
#else
|
||||
#include "client_state.h"
|
||||
#endif
|
||||
|
||||
using std::vector;
|
||||
|
||||
#define MAX_STD (86400)
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include "filesys.h"
|
||||
#include "parse.h"
|
||||
#include "str_util.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "parse.h"
|
||||
#include "str_util.h"
|
||||
#include "util.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "error_numbers.h"
|
||||
#include "file_names.h"
|
||||
#include "filesys.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "client_state.h"
|
||||
#include "filesys.h"
|
||||
#include "error_numbers.h"
|
||||
|
|
|
@ -47,6 +47,7 @@ typedef void (CALLBACK* ClientLibraryShutdown)();
|
|||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <syslog.h>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <csignal>
|
||||
#endif
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
#include "parse.h"
|
||||
#include "util.h"
|
||||
#include "filesys.h"
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#ifndef _WIN32
|
||||
#include "config.h"
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#ifndef _WIN32
|
||||
#include "config.h"
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <cstdarg>
|
||||
#include <cstdlib>
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#ifndef _WIN32
|
||||
#include "config.h"
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "str_util.h"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef _USING_FCGI_
|
||||
|
|
|
@ -94,6 +94,7 @@
|
|||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <ctime>
|
||||
#include <csignal>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
#include "config.h"
|
||||
#include <list>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
#include <time.h>
|
||||
|
||||
#include "boinc_db.h"
|
||||
|
|
|
@ -22,8 +22,10 @@
|
|||
#include "config.h"
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <ctime>
|
||||
#include <cmath>
|
||||
using namespace std;
|
||||
|
|
|
@ -30,8 +30,10 @@
|
|||
#include "config.h"
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
using namespace std;
|
||||
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -31,6 +31,8 @@ using namespace std;
|
|||
|
||||
#include "config.h"
|
||||
#include <unistd.h>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "util.h"
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "config.h"
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
#include <time.h>
|
||||
|
||||
#include "boinc_db.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <cstdlib>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "error_numbers.h"
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include "config.h"
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "sched_msgs.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
// A sample validator that grants credit to any result whose CPU time is above
|
||||
// a certain minimum
|
||||
|
||||
#include <cstdlib>
|
||||
#include "config.h"
|
||||
#include "validate_util.h"
|
||||
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
// and sequence number, so that they're unique.
|
||||
|
||||
#include <unistd.h>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "error_numbers.h"
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
|
||||
// scheduler code related to sending work
|
||||
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#include "config.h"
|
||||
#include "main.h"
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include <ctime>
|
||||
#include <cstdio>
|
||||
#include <stdlib.h>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
#include "error_numbers.h"
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <cstdlib>
|
||||
#include <strings.h>
|
||||
#include <glob.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
// this result may have been the cause of reset
|
||||
// (need to pass last reset time from client)
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
#include "config.h"
|
||||
#include "error_numbers.h"
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <string>
|
||||
#include <ctime>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <stdlib.h>
|
||||
|
||||
using namespace std;
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
|
||||
#include "config.h"
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "error_numbers.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "config.h"
|
||||
#include <string>
|
||||
#include <stdio.h>
|
||||
#include <cstring>
|
||||
|
||||
#include "parse.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
#include <time.h>
|
||||
|
||||
#include "boinc_db.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <cassert>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
using namespace std;
|
||||
|
||||
#include "parse.h"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "config.h"
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "shmem.h"
|
||||
|
|
|
@ -31,7 +31,10 @@ using namespace std;
|
|||
#include "config.h"
|
||||
#include <vector>
|
||||
#include <unistd.h>
|
||||
#include <cstring>
|
||||
#include <climits>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "boinc_db.h"
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "config.h"
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
// or that requires strict equality (see sample_bitwise_validator.C)
|
||||
// or that uses fuzzy comparison.
|
||||
|
||||
#include <cstring>
|
||||
#include "config.h"
|
||||
|
||||
#include "error_numbers.h"
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include "config.h"
|
||||
#include <vector>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "error_numbers.h"
|
||||
|
|
|
@ -40,6 +40,8 @@ using namespace std;
|
|||
#include <climits>
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "util.h"
|
||||
|
|
|
@ -23,6 +23,9 @@
|
|||
|
||||
#include "config.h"
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
#include "boinc_db.h"
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "config.h"
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <ctime>
|
||||
#include <cassert>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <ctime>
|
||||
#include <string>
|
||||
|
||||
#include "boinc_db.h"
|
||||
#include "crypt.h"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
|
||||
// syntax: sign_executable data_file private_key_file
|
||||
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#include "config.h"
|
||||
#include "crypt.h"
|
||||
#include "backend_lib.h"
|
||||
|
|
Loading…
Reference in New Issue