diff options
| author | Thomas Snider <[email protected]> | 2018-01-26 02:48:56 -0800 |
|---|---|---|
| committer | Thomas Snider <[email protected]> | 2018-04-16 13:24:14 -0700 |
| commit | 2c084a6609bed24979c2a144743007f8b10a5c70 (patch) | |
| tree | df9527a3ce02aa01c5d55fd6b660ead4698e954b /src/compat.h | |
| parent | Merge #12972: Add python3 script shebang lint (diff) | |
| download | discoin-2c084a6609bed24979c2a144743007f8b10a5c70.tar.xz discoin-2c084a6609bed24979c2a144743007f8b10a5c70.zip | |
net: Minor accumulated cleanups
Diffstat (limited to 'src/compat.h')
| -rw-r--r-- | src/compat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h index 8a0f90130..920b3f776 100644 --- a/src/compat.h +++ b/src/compat.h @@ -96,6 +96,12 @@ typedef int32_t ssize_t; size_t strnlen( const char *start, size_t max_len); #endif // HAVE_DECL_STRNLEN +#ifndef WIN32 +typedef void* sockopt_arg_type; +#else +typedef char* sockopt_arg_type; +#endif + bool static inline IsSelectableSocket(const SOCKET& s) { #ifdef WIN32 return true; |