FreeBSD Bugzilla – Attachment 205218 Details for
Bug 238704
ftp/R-cran-curl: fix build on big-endian architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
R-cran-curl.patch (text/plain), 1.17 KB, created by
Piotr Kubaj
on 2019-06-19 11:39:34 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-06-19 11:39:34 UTC
Size:
1.17 KB
patch
obsolete
>Index: files/patch-src_curl.c >=================================================================== >--- files/patch-src_curl.c (nonexistent) >+++ files/patch-src_curl.c (working copy) >@@ -0,0 +1,20 @@ >+--- src/curl.c.orig 2019-06-19 09:02:26 UTC >++++ src/curl.c >+@@ -24,6 +24,8 @@ >+ #define BSWAP_32 OSSwapInt32 >+ #elif (defined(__OpenBSD__)) >+ #define BSWAP_32(x) swap32(x) >++#elif (defined(__FreeBSD__)) >++#include <sys/endian.h> >+ #elif (defined(__GLIBC__)) >+ #include <byteswap.h> >+ #define BSWAP_32(x) bswap_32(x) >+@@ -146,7 +148,7 @@ static size_t rcurl_read(void *target, size_t sz, size >+ static int rcurl_fgetc(Rconnection con) { >+ int x = 0; >+ #ifdef WORDS_BIGENDIAN >+- return rcurl_read(&x, 1, 1, con) ? BSWAP_32(x) : R_EOF; >++ return rcurl_read(&x, 1, 1, con) ? bswap32(x) : R_EOF; >+ #else >+ return rcurl_read(&x, 1, 1, con) ? x : R_EOF; >+ #endif > >Property changes on: files/patch-src_curl.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
pkubaj
:
maintainer-approval?
(
tota
)
Actions:
View
|
Diff
Attachments on
bug 238704
: 205218