mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
Code maintenance for Qt 5:
- Added some more includes needed by MinGW-w64 git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6860 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3a72b27632
commit
9095e9bd75
31 changed files with 44 additions and 3 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
const time_t MAX_TIME_BEFORE_RETRY = 300 ; /* seconds before retrying an ip address */
|
||||
const time_t MAX_KEEP_DNS_ENTRY = 3600 ; /* seconds during which a DNS entry is considered valid */
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
const uint32_t MAX_IP_STORE = 300; /* seconds ip address timeout */
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include <map>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
const int RS_DEBUG_STDERR = 1; /* stuff goes to stderr */
|
||||
const int RS_DEBUG_LOGFILE = 2; /* stuff goes to logfile */
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
#include <time.h>
|
||||
#include "retroshare/rsfiles.h"
|
||||
#include "retroshare/rsiface.h"
|
||||
#include "retroshare/rsinit.h"
|
||||
|
@ -32,6 +33,8 @@
|
|||
#include <util/rsthreads.h>
|
||||
#ifndef WIN32
|
||||
#include <sys/statvfs.h>
|
||||
#else
|
||||
#include <wtypes.h>
|
||||
#endif
|
||||
|
||||
#define DELAY_BETWEEN_CHECKS 2
|
||||
|
|
|
@ -16,8 +16,13 @@ RsMutex RSRandom::rndMtx("RSRandom") ;
|
|||
// have anyway)
|
||||
//
|
||||
#ifdef WINDOWS_SYS
|
||||
#include <time.h>
|
||||
#ifdef WIN_PTHREADS_H
|
||||
static bool auto_seed = RSRandom::seed( (time(NULL) + ((uint32_t) pthread_self())*0x1293fe)^0x18e34a12 ) ;
|
||||
#else
|
||||
static bool auto_seed = RSRandom::seed( (time(NULL) + ((uint32_t) pthread_self().p)*0x1293fe)^0x18e34a12 ) ;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
bool RSRandom::seed(uint32_t s)
|
||||
{
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
#include <vector>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
namespace librs { namespace util {
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <unistd.h> /* for usleep() */
|
||||
#include <errno.h> /* for usleep() */
|
||||
#include <iostream>
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#ifdef RSMUTEX_DEBUG
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue