aports/community/gsoap/musl-needs-_GNU_SOURCE-too.patch
alpine-mips-patches 88b9ddc27d community/gsoap: make sure to define _GNU_SOURCE
'strtod_l' is guarded by _GNU_SOURCE which gsoap fails to define on
musl and compilation reports warnings like this:

stdsoap2.c:16352:19: warning: implicit declaration of function 'strtod_l'; did you mean 'strtok_r'? [-Wimplicit-function-declaration]
       *p = (float)strtod_l(s, &r, SOAP_LOCALE(soap));
                   ^~~~~~~~
                   strtok_r

On most hard-float systems (x86_64 and mips*hf for sure) this code
will use some random garbage from the integer register.

...and update musl-fixes.patches to cover yet another attempt to
use glibc-style strerror_r() (triggered by _GNU_SOURCE).

The implicitly declared isatty() at soapcpp2_lex.c:1944 is ignored.
2018-12-31 13:59:48 +00:00

45 lines
1.1 KiB
Diff

--- a/gsoap/VisualStudio2005/wsdl2h/wsdl2h/stdsoap2.cpp
+++ b/gsoap/VisualStudio2005/wsdl2h/wsdl2h/stdsoap2.cpp
@@ -58,7 +58,7 @@
# pragma convert(819) /* EBCDIC to ASCII */
#endif
-#if defined(__gnu_linux__) && !defined(_GNU_SOURCE)
+#if defined(__linux__) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE 1
#endif
--- a/gsoap/samples/calc_vs2005/calc_vs2005/stdsoap2.cpp
+++ b/gsoap/samples/calc_vs2005/calc_vs2005/stdsoap2.cpp
@@ -58,7 +58,7 @@
# pragma convert(819) /* EBCDIC to ASCII */
#endif
-#if defined(__gnu_linux__) && !defined(_GNU_SOURCE)
+#if defined(__linux__) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE 1
#endif
--- a/gsoap/stdsoap2.c
+++ b/gsoap/stdsoap2.c
@@ -58,7 +58,7 @@
# pragma convert(819) /* EBCDIC to ASCII */
#endif
-#if defined(__gnu_linux__) && !defined(_GNU_SOURCE)
+#if defined(__linux__) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE 1
#endif
--- a/gsoap/stdsoap2.cpp
+++ b/gsoap/stdsoap2.cpp
@@ -58,7 +58,7 @@
# pragma convert(819) /* EBCDIC to ASCII */
#endif
-#if defined(__gnu_linux__) && !defined(_GNU_SOURCE)
+#if defined(__linux__) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE 1
#endif