mirror of https://github.com/BOINC/boinc.git
- client/manager: move the conditional define of MAXPATHLEN
from boinc_win.h to filesys.h, so that the client will hopefully build on Hurd, which doesn't define MAXPATHLEN.
This commit is contained in:
parent
7621fd21fe
commit
5b740acee0
|
@ -6540,3 +6540,17 @@ Rom 1 Nov 2012
|
|||
|
||||
samples\vboxwrapper\
|
||||
vbox.cpp, .h
|
||||
|
||||
David 1 Nov 2012
|
||||
- client/manager: move the conditional define of MAXPATHLEN
|
||||
from boinc_win.h to filesys.h,
|
||||
so that the client will hopefully build on Hurd,
|
||||
which doesn't define MAXPATHLEN.
|
||||
|
||||
client/
|
||||
http_curl.cpp
|
||||
lib/
|
||||
boinc_win.h
|
||||
common_defs.h
|
||||
filesys.h
|
||||
gui_rpc_client.h
|
||||
|
|
|
@ -388,13 +388,13 @@ bool HTTP_OP::no_proxy_for_url(const char* url) {
|
|||
return false;
|
||||
}
|
||||
|
||||
static int set_cloexec(void*, curl_socket_t fd, curlsocktype purpose) {
|
||||
#ifndef _WIN32
|
||||
static int set_cloexec(void*, curl_socket_t fd, curlsocktype purpose) {
|
||||
if (purpose != CURLSOCKTYPE_IPCXN) return 0;
|
||||
fcntl(fd, F_SETFD, FD_CLOEXEC);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
// the following will do an HTTP GET or POST using libcurl
|
||||
//
|
||||
|
@ -534,11 +534,12 @@ int HTTP_OP::libcurl_exec(
|
|||
//
|
||||
curl_easy_setopt(curlEasy, CURLOPT_NOPROGRESS, 1L);
|
||||
|
||||
#ifndef _WIN32
|
||||
// arrange for a function to get called between socket() and connect()
|
||||
// so that we can mark the socket as close-on-exec
|
||||
//
|
||||
curl_easy_setopt(curlEasy, CURLOPT_SOCKOPTFUNCTION, set_cloexec);
|
||||
|
||||
#endif
|
||||
// setup timeouts
|
||||
//
|
||||
curl_easy_setopt(curlEasy, CURLOPT_TIMEOUT, 0L);
|
||||
|
|
|
@ -22,10 +22,6 @@
|
|||
#ifndef _BOINC_WIN_
|
||||
#define _BOINC_WIN_
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
#define MAXPATHLEN 4096
|
||||
#endif
|
||||
|
||||
#ifndef __CYGWIN32__
|
||||
|
||||
// Windows C Runtime Library
|
||||
|
|
|
@ -233,5 +233,4 @@ struct VERSION_INFO {
|
|||
#define DEFAULT_SS_EXECUTABLE "boincscr"
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
|
||||
#endif /* !WIN32 */
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
#define MAXPATHLEN 4096
|
||||
#endif
|
||||
|
||||
#define FILE_RETRY_INTERVAL 5
|
||||
// On Windows, retry for this period of time, since some other program
|
||||
// (virus scan, defrag, index) may have the file open.
|
||||
|
|
|
@ -33,13 +33,14 @@
|
|||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
#include "miofile.h"
|
||||
#include "prefs.h"
|
||||
#include "hostinfo.h"
|
||||
#include "common_defs.h"
|
||||
#include "notice.h"
|
||||
#include "network.h"
|
||||
#include "cc_config.h"
|
||||
#include "common_defs.h"
|
||||
#include "filesys.h"
|
||||
#include "hostinfo.h"
|
||||
#include "miofile.h"
|
||||
#include "network.h"
|
||||
#include "notice.h"
|
||||
#include "prefs.h"
|
||||
|
||||
struct GUI_URL {
|
||||
std::string name;
|
||||
|
|
Loading…
Reference in New Issue