<div dir="ltr">No problem, the point is to solve this somehow and allow the build of mingw </div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 1, 2018 at 10:57 AM Marc-André Lureau <<a href="mailto:marcandre.lureau@gmail.com">marcandre.lureau@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
On Sun, Sep 30, 2018 at 7:10 PM Yuri Benditovich<br>
<<a href="mailto:yuri.benditovich@daynix.com" target="_blank">yuri.benditovich@daynix.com</a>> wrote:<br>
><br>
> Currently mingw build of qmp-helper fails under mingw<br>
> due to undefined memmem function.<br>
> Disabling it for mingw till better solution.<br>
><br>
> Signed-off-by: Yuri Benditovich <<a href="mailto:yuri.benditovich@daynix.com" target="_blank">yuri.benditovich@daynix.com</a>><br>
<br>
nack, by compiling out public symbols, the library will have a different ABI.<br>
<br>
Christophe proposed to replace memmem with g_ststr_len() instead.<br>
<br>
> ---<br>
> <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 3 +++<br>
> src/qmp-port.c | 7 +++++++<br>
> 2 files changed, 10 insertions(+)<br>
><br>
> diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> index e686d76..29a3cfa 100644<br>
> --- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> +++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> @@ -59,6 +59,9 @@ esac<br>
> AC_MSG_RESULT([$os_win32])<br>
> AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])<br>
><br>
> +AS_IF([test "$os_win32" = "no"],<br>
> + AC_DEFINE([USE_JSON], [1], [Define if supporting JSON]))<br>
> +<br>
> AC_MSG_CHECKING([for native macOS])<br>
> case "$host_os" in<br>
> *darwin*)<br>
> diff --git a/src/qmp-port.c b/src/qmp-port.c<br>
> index c91f967..b39eb04 100644<br>
> --- a/src/qmp-port.c<br>
> +++ b/src/qmp-port.c<br>
> @@ -22,6 +22,8 @@<br>
> #include <json-glib/json-glib.h><br>
> #include "spice-client.h"<br>
><br>
> +#if USE_JSON<br>
> +<br>
> /**<br>
> * SECTION:qmp-port<br>
> * @short_description: QMP port helper<br>
> @@ -592,3 +594,8 @@ spice_qmp_port_query_status_finish(SpiceQmpPort *self,<br>
><br>
> return g_task_propagate_pointer(G_TASK(result), error);<br>
> }<br>
> +<br>
> +#else<br>
> +/* public procedures for compatibility */<br>
> +<br>
> +#endif /* USE_JSON*/<br>
> --<br>
> 2.17.0<br>
><br>
> _______________________________________________<br>
> Spice-devel mailing list<br>
> <a href="mailto:Spice-devel@lists.freedesktop.org" target="_blank">Spice-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/spice-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
<br>
<br>
<br>
--<br>
Marc-André Lureau<br>
</blockquote></div>