1 diff --git a/lib/curl_config.h b/lib/curl_config.h 2 index f9aef69e2..f5ba92735 100644 3 --- a/lib/curl_config.h 4 +++ b/lib/curl_config.h 5 @@ -143,7 +143,10 @@ 6 /* #undef HAVE_BUILTIN_AVAILABLE */ 7 8 /* Define to 1 if you have the clock_gettime function and monotonic timer. */ 9 +#if !defined(__APPLE__) 10 +/* CLOCK_MONOTONIC is not defined in mac when building for the host. */ 11 #define HAVE_CLOCK_GETTIME_MONOTONIC 1 12 +#endif 13 14 /* Define to 1 if you have the closesocket function. */ 15 /* #undef HAVE_CLOSESOCKET */ 16 @@ -454,10 +457,14 @@ 17 #define HAVE_MEMORY_H 1 18 19 /* Define to 1 if you have the memrchr function or macro. */ 20 +#if !defined(__APPLE__) 21 #define HAVE_MEMRCHR 1 22 +#endif 23 24 /* Define to 1 if you have the MSG_NOSIGNAL flag. */ 25 +#if !defined(__APPLE__) 26 #define HAVE_MSG_NOSIGNAL 1 27 +#endif 28 29 /* Define to 1 if you have the <netdb.h> header file. */ 30 #define HAVE_NETDB_H 1 31 @@ -808,9 +815,6 @@ 32 /* Define absolute filename for winbind's ntlm_auth helper. */ 33 /* #undef NTLM_WB_FILE */ 34 35 -/* cpu-machine-OS */ 36 -#define OS "arm-unknown-linux-androideabi" 37 - 38 /* Name of package */ 39 #define PACKAGE "curl" 40 41 @@ -848,7 +852,7 @@ 42 #define RECV_TYPE_ARG4 int 43 44 /* Define to the function return type for recv. */ 45 -#define RECV_TYPE_RETV int 46 +#define RECV_TYPE_RETV ssize_t 47 48 /* Define as the return type of signal handlers (`int' or `void'). */ 49 #define RETSIGTYPE void 50 @@ -866,7 +870,7 @@ 51 #define SELECT_TYPE_ARG5 struct timeval * 52 53 /* Define to the function return type for select. */ 54 -#define SELECT_TYPE_RETV int 55 +#define SELECT_TYPE_RETV ssize_t 56 57 /* Define to the type qualifier of arg 2 for send. */ 58 #define SEND_QUAL_ARG2 const 59 @@ -884,7 +888,7 @@ 60 #define SEND_TYPE_ARG4 int 61 62 /* Define to the function return type for send. */ 63 -#define SEND_TYPE_RETV int 64 +#define SEND_TYPE_RETV ssize_t 65 66 /* The size of `curl_off_t', as computed by sizeof. */ 67 #define SIZEOF_CURL_OFF_T 8 68 @@ -892,24 +896,9 @@ 69 /* The size of `int', as computed by sizeof. */ 70 #define SIZEOF_INT 4 71 72 -/* The size of `long', as computed by sizeof. */ 73 -#define SIZEOF_LONG 4 74 - 75 -/* The size of `long long', as computed by sizeof. */ 76 -/* #undef SIZEOF_LONG_LONG */ 77 - 78 -/* The size of `off_t', as computed by sizeof. */ 79 -#define SIZEOF_OFF_T 8 80 - 81 /* The size of `short', as computed by sizeof. */ 82 #define SIZEOF_SHORT 2 83 84 -/* The size of `size_t', as computed by sizeof. */ 85 -#define SIZEOF_SIZE_T 4 86 - 87 -/* The size of `time_t', as computed by sizeof. */ 88 -#define SIZEOF_TIME_T 4 89 - 90 /* Define to 1 if you have the ANSI C header files. */ 91 #define STDC_HEADERS 1 92 93