Changes to get build working for Solaris 11.1
parent
f2a3277d4a
commit
29f279debf
|
@ -88,7 +88,7 @@ submit new unit tests for old code.
|
|||
|
||||
Unit tests for the core code are in `src/test/`. To compile and run them:
|
||||
|
||||
cd src; make -f makefile.unix test
|
||||
cd src; make -f makefile.solaris test
|
||||
|
||||
Unit tests for the GUI code are in `src/qt/test/`. To compile and run them:
|
||||
|
||||
|
|
16
src/compat.h
16
src/compat.h
|
@ -18,7 +18,11 @@
|
|||
#else
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#ifndef __sun__
|
||||
#include <sys/fcntl.h>
|
||||
#else
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <net/if.h>
|
||||
|
@ -26,6 +30,18 @@
|
|||
#include <ifaddrs.h>
|
||||
#endif
|
||||
|
||||
#ifdef __sun__
|
||||
using std::map;
|
||||
#endif
|
||||
|
||||
#ifndef MSG_NOSIGNAL
|
||||
#define MSG_NOSIGNAL 0
|
||||
#endif
|
||||
|
||||
#ifndef PRIO_MAX
|
||||
#define PRIO_MAX 20
|
||||
#endif
|
||||
|
||||
#ifndef _WIN64
|
||||
typedef u_int SOCKET;
|
||||
#endif
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
// Dump addresses to peers.dat every 15 minutes (900s)
|
||||
#define DUMP_ADDRESSES_INTERVAL 900
|
||||
|
||||
using std::map;
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
|
|
|
@ -8,10 +8,6 @@
|
|||
#include "sync.h"
|
||||
#include "hash.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <sys/fcntl.h>
|
||||
#endif
|
||||
|
||||
#include <boost/algorithm/string/case_conv.hpp> // for to_lower()
|
||||
#include <boost/algorithm/string/predicate.hpp> // for startswith() and endswith()
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
#include <boost/foreach.hpp>
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
#include "script.h"
|
||||
#include "keystore.h"
|
||||
#include "bignum.h"
|
||||
|
@ -16,6 +13,9 @@ using namespace boost;
|
|||
#include "sync.h"
|
||||
#include "util.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
bool CheckSig(vector<unsigned char> vchSig, vector<unsigned char> vchPubKey, CScript scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType, int flags);
|
||||
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include "mruset.h"
|
||||
#include "util.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
#define NUM_TESTS 16
|
||||
#define MAX_SIZE 100
|
||||
|
||||
|
|
Loading…
Reference in New Issue