From 8020a0c62f79239c802ed6fa840b11677176910a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 6 Apr 2018 15:26:04 +0200 Subject: 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 --- lib/curl_setup.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/curl_setup.h') 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 */ -- cgit v1.2.3