diff options
| author | Jeff Garzik <[email protected]> | 2013-08-24 20:19:24 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-08-24 20:19:24 -0700 |
| commit | 3d86e7cd48f8a25a8f1b63a2e8220b56eb1f7b11 (patch) | |
| tree | b584599e7e2e3249b6da7192998f17e0dffd7fb4 /src/util.h | |
| parent | Merge pull request #2852 from petertodd/getblock-chainwork (diff) | |
| parent | Fix fcntl include in net.cpp & netbase.cpp (diff) | |
| download | discoin-3d86e7cd48f8a25a8f1b63a2e8220b56eb1f7b11.tar.xz discoin-3d86e7cd48f8a25a8f1b63a2e8220b56eb1f7b11.zip | |
Merge pull request #2618 from fcicq/solaris-support
Partial solaris support
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index c9614d305..f246412de 100644 --- a/src/util.h +++ b/src/util.h @@ -101,6 +101,10 @@ T* alignup(T* p) #else #define MAX_PATH 1024 #endif +// As Solaris does not have the MSG_NOSIGNAL flag for send(2) syscall, it is defined as 0 +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif inline void MilliSleep(int64 n) { @@ -515,6 +519,10 @@ inline void SetThreadPriority(int nPriority) } #else +// PRIO_MAX is not defined on Solaris +#ifndef PRIO_MAX + #define PRIO_MAX 20 +#endif #define THREAD_PRIORITY_LOWEST PRIO_MAX #define THREAD_PRIORITY_BELOW_NORMAL 2 #define THREAD_PRIORITY_NORMAL 0 |