diff options
| author | fcicq <[email protected]> | 2013-05-05 13:36:42 +0800 |
|---|---|---|
| committer | fcicq <[email protected]> | 2013-07-17 16:50:51 +0800 |
| commit | 9371403993eabc013c15971f13a90dc3c80bbc8e (patch) | |
| tree | 56649578f09471ba60060ef0278d9b30c66dc225 /src | |
| parent | Fix boost uint type bug by reordering the includes (diff) | |
| download | discoin-9371403993eabc013c15971f13a90dc3c80bbc8e.tar.xz discoin-9371403993eabc013c15971f13a90dc3c80bbc8e.zip | |
Add missing constant for solaris
Diffstat (limited to 'src')
| -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 bee2749c1..3540cf512 100644 --- a/src/util.h +++ b/src/util.h @@ -102,6 +102,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) { @@ -499,6 +503,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 |