- changes to many files to fix gcc4.3 compile

svn path=/trunk/boinc/; revision=14811
This commit is contained in:
David Anderson 2008-02-27 23:26:38 +00:00
parent 86857a5452
commit c8384113e4
58 changed files with 95 additions and 14 deletions

View File

@ -26,6 +26,7 @@
#else
#include "config.h"
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <cstdarg>
#include <sys/types.h>

View File

@ -26,6 +26,7 @@
#include <unistd.h>
#include <pthread.h>
#include <signal.h>
#include <cstring>
#include "x_opengl.h"
#include "app_ipc.h"

View File

@ -26,6 +26,7 @@
#include <sys/stat.h>
#endif
#include <cstring>
#include "shmem.h"
#include "filesys.h"
#include "app_ipc.h"

View File

@ -25,6 +25,7 @@
#include "config.h"
#endif
#include <cstring>
#include "diagnostics.h"
#include "boinc_api.h"
#include "graphics_impl.h"

View File

@ -24,6 +24,7 @@
#include "boinc_win.h"
#endif
#include <cstring>
#include "config.h"
#include "app_ipc.h"
#include "graphics_impl.h"

View File

@ -29,6 +29,7 @@
#endif
#include "config.h"
#include <cstring>
#include <dlfcn.h>
#include "boinc_api.h"

View File

@ -24,6 +24,7 @@
#include "boinc_win.h"
#endif
#include <cstring>
#include "filesys.h"
#include "boinc_api.h"

View File

@ -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.
//

View File

@ -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

View File

@ -23,6 +23,7 @@
#include "config.h"
#endif
#include <cstring>
#include "parse.h"
#include "error_numbers.h"
#include "client_msgs.h"

View File

@ -25,6 +25,7 @@
#include "config.h"
#endif
#include <cstring>
#include "client_state.h"
#include "file_names.h"
#include "parse.h"

View File

@ -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"

View File

@ -29,6 +29,7 @@
#include <cstdlib>
#include <ctime>
#include <cstdarg>
#include <cstring>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

View File

@ -27,6 +27,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <zlib.h>
#include <cstring>
#endif
#include "error_numbers.h"

View File

@ -34,4 +34,5 @@
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#endif

View File

@ -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)

View File

@ -31,6 +31,8 @@
#endif
#endif
#include <algorithm>
#include <cstring>
#include "filesys.h"
#include "parse.h"
#include "str_util.h"

View File

@ -23,6 +23,7 @@
#include "config.h"
#endif
#include <cstring>
#include "parse.h"
#include "str_util.h"
#include "util.h"

View File

@ -24,6 +24,7 @@
#include "config.h"
#endif
#include <cstring>
#include "error_numbers.h"
#include "file_names.h"
#include "filesys.h"

View File

@ -23,6 +23,7 @@
#include "config.h"
#endif
#include <cstring>
#include "client_state.h"
#include "filesys.h"
#include "error_numbers.h"

View File

@ -47,6 +47,7 @@ typedef void (CALLBACK* ClientLibraryShutdown)();
#endif
#include <sys/stat.h>
#include <syslog.h>
#include <cstdlib>
#include <unistd.h>
#include <csignal>
#endif

View File

@ -32,6 +32,7 @@
#include <sys/socket.h>
#endif
#include <cstring>
#include "parse.h"
#include "util.h"
#include "filesys.h"

View File

@ -31,6 +31,7 @@
#ifndef _WIN32
#include "config.h"
#include <cstdio>
#include <cstring>
#include <unistd.h>
#endif

View File

@ -30,6 +30,7 @@
#ifndef _WIN32
#include "config.h"
#include <cstring>
#include <cstdio>
#include <cstdarg>
#include <cstdlib>

View File

@ -23,6 +23,7 @@
#ifndef _WIN32
#include "config.h"
#include <cstring>
#include <string>
#endif

View File

@ -33,7 +33,7 @@
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <string>
#include "boinc_db.h"
#include "str_util.h"

View File

@ -19,6 +19,7 @@
#include <vector>
#include <algorithm>
#include <cstring>
#include <cstdio>
#ifdef _USING_FCGI_

View File

@ -94,6 +94,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <ctime>
#include <csignal>
#include <unistd.h>

View File

@ -73,6 +73,7 @@
#include "config.h"
#include <list>
#include <cstring>
#include <string>
#include <cstdlib>
#include <ctime>
#include <unistd.h>

View File

@ -32,7 +32,7 @@
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <string>
#include <time.h>
#include "boinc_db.h"

View File

@ -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;

View File

@ -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>

View File

@ -31,6 +31,8 @@ using namespace std;
#include "config.h"
#include <unistd.h>
#include <cstdlib>
#include <string>
#include "boinc_db.h"
#include "util.h"

View File

@ -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"

View File

@ -23,6 +23,7 @@
#include <vector>
#include <string>
#include <cstdlib>
#include "boinc_db.h"
#include "error_numbers.h"

View File

@ -21,6 +21,8 @@
#include "config.h"
#include <cstdio>
#include <cstdlib>
#include <string>
#include "boinc_db.h"
#include "sched_msgs.h"

View File

@ -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"

View File

@ -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"

View File

@ -19,6 +19,9 @@
// scheduler code related to sending work
#include <cstdlib>
#include <string>
#include <cstring>
#include "config.h"
#include "main.h"

View File

@ -23,6 +23,8 @@
#include <ctime>
#include <cstdio>
#include <stdlib.h>
#include <cstring>
#include <string>
#include "error_numbers.h"

View File

@ -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>

View File

@ -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"

View File

@ -26,6 +26,7 @@
#include <string>
#include <ctime>
#include <cstdio>
#include <cstring>
#include <stdlib.h>
using namespace std;

View File

@ -23,7 +23,9 @@
#include "config.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include "boinc_db.h"
#include "error_numbers.h"

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <string>
#include <stdio.h>
#include <cstring>
#include "parse.h"

View File

@ -31,7 +31,7 @@
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <string>
#include <time.h>
#include "boinc_db.h"

View File

@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <string>
#include <cstring>
using namespace std;
#include "parse.h"

View File

@ -22,6 +22,7 @@
#include "config.h"
#include <cstdio>
#include <cstdlib>
#include <string>
#include <unistd.h>
#include "shmem.h"

View File

@ -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"

View File

@ -30,6 +30,7 @@
#include "config.h"
#include <cstdio>
#include <cstring>
#include <string>
#include <cstdlib>
#include <unistd.h>

View File

@ -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"

View File

@ -24,6 +24,8 @@
#include "config.h"
#include <vector>
#include <cstdlib>
#include <string>
#include "boinc_db.h"
#include "error_numbers.h"

View File

@ -40,6 +40,8 @@ using namespace std;
#include <climits>
#include <cmath>
#include <vector>
#include <cstdlib>
#include <string>
#include "boinc_db.h"
#include "util.h"

View File

@ -23,6 +23,9 @@
#include "config.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include "boinc_db.h"

View File

@ -20,6 +20,7 @@
#include "config.h"
#include <cstdlib>
#include <cstring>
#include <string>
#include <ctime>
#include <cassert>
#include <unistd.h>

View File

@ -56,6 +56,7 @@
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <string>
#include "boinc_db.h"
#include "crypt.h"

View File

@ -19,6 +19,7 @@
#include "config.h"
#include <cstring>
#include <string>
#include <cstdlib>
#include <cassert>

View File

@ -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"