curlbuild: fix GCC build on SPARC systems without configure script
authorMAN-AT-ARMS <donny@ecgnetwork.com>
Mon, 16 Jun 2014 19:12:14 +0000 (15:12 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 16 Jun 2014 19:44:28 +0000 (21:44 +0200)
include/curl/curlbuild.h.dist

index 3ad2f01..f09419a 100644 (file)
 
 #elif defined(__GNUC__)
 #  if defined(__ILP32__) || \
-      defined(__i386__) || defined(__ppc__) || defined(__arm__)
+      defined(__i386__) || defined(__ppc__) || defined(__arm__) || defined(__sparc__)
 #    define CURL_SIZEOF_LONG           4
 #    define CURL_TYPEOF_CURL_OFF_T     long long
 #    define CURL_FORMAT_CURL_OFF_T     "lld"
 #    define CURL_SUFFIX_CURL_OFF_T     LL
 #    define CURL_SUFFIX_CURL_OFF_TU    ULL
 #  elif defined(__LP64__) || \
-        defined(__x86_64__) || defined(__ppc64__)
+        defined(__x86_64__) || defined(__ppc64__) || defined(__sparc64__)
 #    define CURL_SIZEOF_LONG           8
 #    define CURL_TYPEOF_CURL_OFF_T     long
 #    define CURL_FORMAT_CURL_OFF_T     "ld"