aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-06 15:26:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-07 11:19:46 +0200
commit8020a0c62f79239c802ed6fa840b11677176910a (patch)
tree9718e430d0af29080d96b79e2332d9164b98d5f6 /lib/curl_setup.h
parenta19fefb0706f939d2df7a76704ee549fecb1c4fd (diff)
curl_setup: provide a CURL_SA_FAMILY_T type if none exists
... and use this type instead of 'sa_family_t' in the code since several platforms don't have it. Closes #2463
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r--lib/curl_setup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h
index e4503c64c..5593a3b5c 100644
--- a/lib/curl_setup.h
+++ b/lib/curl_setup.h
@@ -795,4 +795,9 @@ endings either CRLF or LF so 't' is appropriate.
# endif
# endif
+/* for systems that don't detect this in configure, use a sensible default */
+#ifndef CURL_SA_FAMILY_T
+#define CURL_SA_FAMILY_T unsigned short
+#endif
+
#endif /* HEADER_CURL_SETUP_H */