Skip to content

Commit

Permalink
Support Solaris. (dmlc#6578)
Browse files Browse the repository at this point in the history
* Add system header.

* Remove use of TR1 on Solaris

Co-authored-by: Hyunsu Cho <chohyu01@cs.washington.edu>
  • Loading branch information
trivialfis and hcho3 committed Jan 10, 2021
1 parent 7aec915 commit 122aec2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/xgboost/base.h
Expand Up @@ -55,7 +55,7 @@
#endif // defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 8) || __GNUC__ > 4)

#if defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 8) || __GNUC__ > 4) && \
!defined(__CUDACC__)
!defined(__CUDACC__) && !defined(__sun) && !defined(sun)
#include <parallel/algorithm>
#define XGBOOST_PARALLEL_SORT(X, Y, Z) __gnu_parallel::sort((X), (Y), (Z))
#define XGBOOST_PARALLEL_STABLE_SORT(X, Y, Z) \
Expand Down
4 changes: 4 additions & 0 deletions rabit/include/rabit/internal/socket.h
Expand Up @@ -25,6 +25,10 @@
#include <sys/socket.h>
#include <sys/ioctl.h>

#if defined(__sun) || defined(sun)
#include <sys/sockio.h>
#endif // defined(__sun) || defined(sun)

#endif // defined(_WIN32)

#include <string>
Expand Down

0 comments on commit 122aec2

Please sign in to comment.