5 changed files with 71 additions and 76 deletions
@ -1,12 +0,0 @@ |
|||
diff -u -r ../transmission-2.82/third-party/miniupnp/miniwget.c ./third-party/miniupnp/miniwget.c
|
|||
--- ../transmission-2.82/third-party/miniupnp/miniwget.c 2013-08-09 04:47:50.000000000 +0200
|
|||
+++ ./third-party/miniupnp/miniwget.c 2014-02-10 17:08:34.000000000 +0100
|
|||
@@ -42,7 +42,7 @@
|
|||
* during the connect() call */ |
|||
#define MINIUPNPC_IGNORE_EINTR |
|||
#endif /* #else _WIN32 */ |
|||
-#if defined(__sun) || defined(sun)
|
|||
+#if defined(__sun) || defined(sun) || defined __ANDROID__
|
|||
#define MIN(x,y) (((x)<(y))?(x):(y)) |
|||
#endif |
|||
|
@ -1,12 +1,11 @@ |
|||
diff -u -r ../transmission-2.82/libtransmission/utils.c ./libtransmission/utils.c
|
|||
--- ../transmission-2.82/libtransmission/utils.c 2013-08-09 04:45:40.000000000 +0200
|
|||
+++ ./libtransmission/utils.c 2014-01-29 00:08:31.000000000 +0100
|
|||
@@ -1412,7 +1412,7 @@
|
|||
--- ./libtransmission/utils.c.orig 2020-05-14 20:22:41.415540431 +0200
|
|||
+++ ./libtransmission/utils.c 2020-05-14 20:23:46.340145553 +0200
|
|||
@@ -1627,7 +1627,7 @@
|
|||
char buf[128]; |
|||
const int max_precision = (int) log10 (1.0 / DBL_EPSILON) - 1; |
|||
tr_snprintf (buf, sizeof (buf), "%.*f", max_precision, x); |
|||
- if ((pt = strstr (buf, localeconv ()->decimal_point)))
|
|||
+ if ((pt = strstr (buf, ".")))
|
|||
pt[precision ? precision+1 : 0] = '\0'; |
|||
return atof (buf); |
|||
tr_snprintf(buf, sizeof(buf), "%.*f", DBL_DIG, x); |
|||
|
|||
- if ((pt = strstr(buf, localeconv()->decimal_point)) != NULL)
|
|||
+ if ((pt = strstr(buf, ".")) != NULL)
|
|||
{ |
|||
pt[precision != 0 ? precision + 1 : 0] = '\0'; |
|||
} |
|||
|
Loading…
Reference in new issue