diff options
author | Benjamin Naecker <ben@oxide.computer> | 2021-04-28 15:52:23 -0700 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2021-06-30 22:05:38 +0200 |
commit | 582293bb5ee268fc64ecefe710a5bcf253df1a6e (patch) | |
tree | 0e1358441a6fc5a340a738a85ac78a36ed1e8322 | |
parent | 3c3a389c8ac546623d21e2d151c402503b358bc9 (diff) | |
download | thrift-582293bb5ee268fc64ecefe710a5bcf253df1a6e.tar.gz |
Adds support for building C++ codegen on Solaris
Client: cpp
Author: Benjamin Naecker
This closes #2380
Solaris-derived systems split some functionality that is usually found
in `sys/ioctl.h` into `sys/filio.h`. In this case, the `FIONREAD`
constant is in the latter file.
-rw-r--r-- | lib/cpp/src/thrift/transport/TSocket.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/cpp/src/thrift/transport/TSocket.cpp b/lib/cpp/src/thrift/transport/TSocket.cpp index 046c2e685..2f0eb9c4a 100644 --- a/lib/cpp/src/thrift/transport/TSocket.cpp +++ b/lib/cpp/src/thrift/transport/TSocket.cpp @@ -23,6 +23,9 @@ #include <sstream> #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> +#ifdef __sun +#include <sys/filio.h> +#endif // __sun #endif #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> |