mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
'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.
45 lines
1.1 KiB
Diff
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
|
|
|