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:
thunder2 2013-10-21 11:00:49 +00:00
parent 3a72b27632
commit 9095e9bd75
31 changed files with 44 additions and 3 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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