diff options
author | Ryan Schmidt <git@ryandesign.com> | 2022-12-07 11:00:41 -0600 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-12-09 08:21:15 +0100 |
commit | ac4554870d40ffd5de0a95df162a3a8b6cfcc7aa (patch) | |
tree | d92247c68da6d5690cb67104e451fc55948ba036 /lib/config-mac.h | |
parent | b8e605adef8fecf765a20bcf1ed0c53d6389d109 (diff) | |
download | curl-ac4554870d40ffd5de0a95df162a3a8b6cfcc7aa.tar.gz |
system.h: fix socklen_t, curl_off_t, long long for Classic Mac OS
Change "__MWERKS__" to "macintosh". When this block was originally added
in 3ac6929 it was probably intended to handle classic Mac OS since the
previous classic Mac OS build procedure for curl (which was removed in
bf327a9) used Metrowerks CodeWarrior.
But there are other classic Mac OS compilers, such as the MPW compilers,
that were not handled by this case. For classic Mac OS,
CURL_TYPEOF_CURL_SOCKLEN_T needs to match what's provided by the
third-party GUSI library, which does not vary by compiler.
Meanwhile CodeWarrior works on platforms other than classic Mac OS, and
they may need different definitions. Separate blocks could be added
later for any of those platforms that curl doesn't already support.
Closes #10049
Diffstat (limited to 'lib/config-mac.h')
-rw-r--r-- | lib/config-mac.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/config-mac.h b/lib/config-mac.h index 4a66edf6b..2d3eec3cb 100644 --- a/lib/config-mac.h +++ b/lib/config-mac.h @@ -34,6 +34,11 @@ #define OS "mac" #endif +#include <ConditionalMacros.h> +#if TYPE_LONGLONG +#define HAVE_LONGLONG 1 +#endif + /* Define if you want the built-in manual */ #define USE_MANUAL 1 @@ -77,7 +82,13 @@ #define HAVE_IOCTL_FIONBIO 1 #define SIZEOF_INT 4 +#define SIZEOF_LONG 4 #define SIZEOF_SIZE_T 4 +#ifdef HAVE_LONGLONG +#define SIZEOF_CURL_OFF_T 8 +#else +#define SIZEOF_CURL_OFF_T 4 +#endif #define HAVE_RECV 1 #define RECV_TYPE_ARG1 int |