From 9ff8e6bcf3a09c6ff7f2075aa9983292fd19d38c Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 14 Oct 2021 14:45:08 -0700 Subject: [PATCH] wsdd2: fix usage with musl 1.2.0 This package uses a wrong format string for time_t. Cast to long long to fix. Signed-off-by: Rosen Penev --- net/wsdd2/patches/010-musl-12.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 net/wsdd2/patches/010-musl-12.patch diff --git a/net/wsdd2/patches/010-musl-12.patch b/net/wsdd2/patches/010-musl-12.patch new file mode 100644 index 0000000000..dd152c79c3 --- /dev/null +++ b/net/wsdd2/patches/010-musl-12.patch @@ -0,0 +1,20 @@ +--- a/wsd.c ++++ b/wsd.c +@@ -532,7 +532,7 @@ static int wsd_send_soap_msg(int fd, str + "%s" + "%s" + "urn:uuid:%s" +- "" + "%s" + "" +@@ -559,7 +559,7 @@ static int wsd_send_soap_msg(int fd, str + } + + ssize_t msglen = asprintf(&msg, soap_msg_templ, to, action, msg_id, +- wsd_instance, wsd_sequence, ++ (long long)wsd_instance, wsd_sequence, + ++msg_no, soap_relates, + body); + free(soap_relates); -- 2.30.2