aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorThomas Snider <tjps636@gmail.com>2018-01-26 02:48:56 -0800
committerThomas Snider <tjps636@gmail.com>2018-04-16 13:24:14 -0700
commit2c084a6609bed24979c2a144743007f8b10a5c70 (patch)
treedf9527a3ce02aa01c5d55fd6b660ead4698e954b /src/compat.h
parent07825088f9cfd8abece774b9d978c36ab90ce3d1 (diff)
net: Minor accumulated cleanups
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h
index 8a0f901304..920b3f776d 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;