Allow using external dmlc-core (#91)

* Set `RABIT_BUILD_DMLC=1` if use dmlc-core in rabit

* remove dmlc-core
This commit is contained in:
Chen Qin
2019-04-26 00:28:45 -07:00
committed by Jiaming Yuan
parent e3d51d3e62
commit 5c3b36f346
8 changed files with 36 additions and 18 deletions

View File

@@ -287,7 +287,7 @@ class TCPSocket : public Socket{
struct linger sl;
sl.l_onoff = 1; /* non-zero value enables linger option in kernel */
sl.l_linger = timeout; /* timeout interval in seconds */
if (setsockopt(sockfd, SOL_SOCKET, SO_LINGER, &sl, sizeof(sl)) == -1) {
if (setsockopt(sockfd, SOL_SOCKET, SO_LINGER, reinterpret_cast<char*>(&sl), sizeof(sl)) == -1) {
Socket::Error("SO_LINGER");
}
}