curl-library
Add support for compilation on ppc and ppc64
Date: Thu, 15 Jan 2009 16:32:24 -0800
Hi,
I have a patch to allow curl to compile for ppc and ppc64 on Mac OS X. It's
a simple matter of changing two lines in curlbuild.h:
#elif defined(__GNUC__)
-# if defined(__i386__)
+# if (defined(__i386__) || defined(__ppc__))
# define CURL_SIZEOF_LONG 4
# define CURL_TYPEOF_CURL_OFF_T long long
# define CURL_FORMAT_CURL_OFF_T "lld"
and about 9 lines later:
# define CURL_SIZEOF_CURL_OFF_T 8
# define CURL_SUFFIX_CURL_OFF_T LL
# define CURL_SUFFIX_CURL_OFF_TU ULL
-# elif defined(__x86_64__)
+# elif (defined(__x86_64__) || defined(__ppc64__))
# define CURL_SIZEOF_LONG 8
# define CURL_TYPEOF_CURL_OFF_T long
# define CURL_FORMAT_CURL_OFF_T "ld"
Should I make a formal patch file, or is this sufficient?
Thanks very much,
-andrew
Received on 2009-01-16