]> Git Repo - buildroot-mgba.git/commitdiff
package/umtprd: fix build on musl
authorFabrice Fontaine <[email protected]>
Tue, 23 Jun 2020 21:38:03 +0000 (23:38 +0200)
committerThomas Petazzoni <[email protected]>
Tue, 14 Jul 2020 21:44:31 +0000 (23:44 +0200)
Fixes:
 - http://autobuild.buildroot.org/results/0b577a2f0582e38d33bd41a4d8e4cb7ec6eab52b

Signed-off-by: Fabrice Fontaine <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
package/umtprd/0001-Fix-the-missing-definitions-build-errors-warnings-on-some-systems.patch [new file with mode: 0644]
package/umtprd/0002-Fix-the-pthread-missing-definition-build-error-on-some-systems.patch [new file with mode: 0644]

diff --git a/package/umtprd/0001-Fix-the-missing-definitions-build-errors-warnings-on-some-systems.patch b/package/umtprd/0001-Fix-the-missing-definitions-build-errors-warnings-on-some-systems.patch
new file mode 100644 (file)
index 0000000..78dfb36
--- /dev/null
@@ -0,0 +1,38 @@
+From b6eccf2160fd16405542249c62a87aff2fbfcd33 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jean-Fran=C3=A7ois=20DEL=20NERO?=
+Date: Sat, 16 May 2020 09:37:40 +0200
+Subject: [PATCH] Fix the missing definitions build errors/warnings on some
+ systems.
+
+[Retrieved from:
+https://github.com/viveris/uMTP-Responder/commit/b6eccf2160fd16405542249c62a87aff2fbfcd33]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ src/usb_gadget.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/usb_gadget.c b/src/usb_gadget.c
+index 856bb53..9f3896f 100644
+--- a/src/usb_gadget.c
++++ b/src/usb_gadget.c
+@@ -27,7 +27,10 @@
+ #include "buildconf.h"
++#include <endian.h>
+ #include <inttypes.h>
++#include <pthread.h>
++#include <sys/time.h>
+ #include <sys/ioctl.h>
+@@ -38,7 +41,7 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <stdio.h>
+-#include <pthread.h>
++
+ #include <signal.h>
+ #include <errno.h>
diff --git a/package/umtprd/0002-Fix-the-pthread-missing-definition-build-error-on-some-systems.patch b/package/umtprd/0002-Fix-the-pthread-missing-definition-build-error-on-some-systems.patch
new file mode 100644 (file)
index 0000000..b7d211c
--- /dev/null
@@ -0,0 +1,78 @@
+From 2e7aaf0c373a0e3a271f4b374bd98de8a80aefb0 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jean-Fran=C3=A7ois=20DEL=20NERO?=
+Date: Sat, 16 May 2020 09:20:01 +0200
+Subject: [PATCH] Fix the pthread missing definition build error on some
+ systems.
+
+[Retrieved from:
+https://github.com/viveris/uMTP-Responder/commit/2e7aaf0c373a0e3a271f4b374bd98de8a80aefb0]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ src/fs_handles_db.c                    | 1 +
+ src/mtp_cfg.c                          | 1 +
+ src/mtp_datasets.c                     | 1 +
+ src/mtp_operations/mtp_op_sendobject.c | 1 +
+ src/mtp_properties.c                   | 1 +
+ 5 files changed, 5 insertions(+)
+
+diff --git a/src/fs_handles_db.c b/src/fs_handles_db.c
+index a91268a..178bd90 100644
+--- a/src/fs_handles_db.c
++++ b/src/fs_handles_db.c
+@@ -26,6 +26,7 @@
+ #include "buildconf.h"
+ #include <inttypes.h>
++#include <pthread.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <string.h>
+diff --git a/src/mtp_cfg.c b/src/mtp_cfg.c
+index 30f473a..1f2302d 100644
+--- a/src/mtp_cfg.c
++++ b/src/mtp_cfg.c
+@@ -26,6 +26,7 @@
+ #include "buildconf.h"
+ #include <inttypes.h>
++#include <pthread.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+diff --git a/src/mtp_datasets.c b/src/mtp_datasets.c
+index 95cec68..fbd67e2 100644
+--- a/src/mtp_datasets.c
++++ b/src/mtp_datasets.c
+@@ -26,6 +26,7 @@
+ #include "buildconf.h"
+ #include <inttypes.h>
++#include <pthread.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/statvfs.h>
+diff --git a/src/mtp_operations/mtp_op_sendobject.c b/src/mtp_operations/mtp_op_sendobject.c
+index 8af2c6b..8e1498c 100644
+--- a/src/mtp_operations/mtp_op_sendobject.c
++++ b/src/mtp_operations/mtp_op_sendobject.c
+@@ -26,6 +26,7 @@
+ #include "buildconf.h"\r
\r
+ #include <inttypes.h>\r
++#include <pthread.h>\r
+ #include <unistd.h>\r
+ #include <fcntl.h>\r
+ #include <pthread.h>\r
+diff --git a/src/mtp_properties.c b/src/mtp_properties.c
+index 4500cd4..5cf6e2d 100644
+--- a/src/mtp_properties.c
++++ b/src/mtp_properties.c
+@@ -26,6 +26,7 @@
+ #include "buildconf.h"\r
\r
+ #include <inttypes.h>\r
++#include <pthread.h>\r
+ #include <string.h>\r
+ #include <stdio.h>\r
+ #include <sys/types.h>\r
This page took 0.065816 seconds and 4 git commands to generate.