summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2011-07-21 11:28:46 +0000
committerChristoph Mende <angelos@gentoo.org>2011-07-21 11:28:46 +0000
commit2ad22728e6d845d809ecfc52e947397e08505acd (patch)
treeadae54fd4a3d6d0c7bf5e94db794170f814734ed /net-misc/curl/files
parentMisc updates to set-opacity-1.0, add 9999. See #276913 (diff)
downloadhistorical-2ad22728e6d845d809ecfc52e947397e08505acd.tar.gz
historical-2ad22728e6d845d809ecfc52e947397e08505acd.tar.bz2
historical-2ad22728e6d845d809ecfc52e947397e08505acd.zip
Fix cross compilation with differing long integer sizes (bug #365375)
Package-Manager: portage-2.2.0_alpha46/cvs/Linux x86_64
Diffstat (limited to 'net-misc/curl/files')
-rw-r--r--net-misc/curl/files/config.h.ed29
-rw-r--r--net-misc/curl/files/curlbuild.h.ed15
2 files changed, 44 insertions, 0 deletions
diff --git a/net-misc/curl/files/config.h.ed b/net-misc/curl/files/config.h.ed
new file mode 100644
index 000000000000..caf6d43cf247
--- /dev/null
+++ b/net-misc/curl/files/config.h.ed
@@ -0,0 +1,29 @@
+/SIZEOF_LONG/c
+#ifdef __LP64__
+#define SIZEOF_LONG 8
+#else /* !__LP64__ */
+#define SIZEOF_LONG 4
+#endif /* __LP64__ */
+.
+/SIZEOF_SIZE_T/c
+#ifdef __LP64__
+#define SIZEOF_SIZE_T 8
+#else /* !__LP64__ */
+#define SIZEOF_SIZE_T 4
+#endif /* __LP64__ */
+.
+/SIZEOF_TIME_T/c
+#ifdef __LP64__
+#define SIZEOF_TIME_T 8
+#else /* !__LP64__ */
+#define SIZEOF_TIME_T 4
+#endif /* __LP64__ */
+.
+/SIZEOF_VOIDP/c
+#ifdef __LP64__
+#define SIZEOF_VOIDP 8
+#else /* !__LP64__ */
+#define SIZEOF_VOIDP 4
+#endif /* __LP64__ */
+.
+w
diff --git a/net-misc/curl/files/curlbuild.h.ed b/net-misc/curl/files/curlbuild.h.ed
new file mode 100644
index 000000000000..5f076e6e8ffc
--- /dev/null
+++ b/net-misc/curl/files/curlbuild.h.ed
@@ -0,0 +1,15 @@
+/define CURL_SIZEOF_LONG/c
+#ifdef __LP64__
+#define CURL_SIZEOF_LONG 8
+#else /* !__LP64__ */
+#define CURL_SIZEOF_LONG 4
+#endif /* __LP64__ */
+.
+/define CURL_SIZEOF_CURL_OFF_T/c
+#ifdef __LP64__
+#define CURL_SIZEOF_CURL_OFF_T 8
+#else /* !__LP64__ */
+#define CURL_SIZEOF_CURL_OFF_T 4
+#endif /* __LP64__ */
+.
+w