Skip to contentSkip to conversation

package/umtprd: fix build on musl

PATCH New Fabrice Fontaine 2 participants 2 messages Jun 23, 2020 – Jul 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/umtprd: fix build on musl

Fixes:
- http://autobuild.buildroot.org/results/0b577a2f0582e38d33bd41a4d8e4cb7ec6eab52b

---
 ...uild-errors-warnings-on-some-systems.patch | 38 +++++++++
 ...finition-build-error-on-some-systems.patch | 78 +++++++++++++++++++
 2 files changed, 116 insertions(+)
 create mode 100644 package/umtprd/0001-Fix-the-missing-definitions-build-errors-warnings-on-some-systems.patch
 create mode 100644 package/umtprd/0002-Fix-the-pthread-missing-definition-build-error-on-some-systems.patch
package/umtprd/0001-Fix-the-missing-definitions-build-errors-warnings-on-some-systems.patch new file +38 -0
new file mode 100644
index 0000000000..78dfb3657f
@@ -0,0 +1,38 @@
+From b6eccf2160fd16405542249c62a87aff2fbfcd33 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jean-Fran=C3=A7ois=20DEL=20NERO?=
+ <[email protected]>
+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>
package/umtprd/0002-Fix-the-pthread-missing-definition-build-error-on-some-systems.patch new file +78 -0

78 lines not on this page · raw message

Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 package/umtprd: fix build on musl

Quoted 10 lines · On Tue, 23 Jun 2020 23:38:03 +0200 Fabrice Fontaine…

Fixes:
- http://autobuild.buildroot.org/results/0b577a2f0582e38d33bd41a4d8e4cb7ec6eab52b

---
 ...uild-errors-warnings-on-some-systems.patch | 38 +++++++++
 ...finition-build-error-on-some-systems.patch | 78 +++++++++++++++++++
 2 files changed, 116 insertions(+)
 create mode 100644 package/umtprd/0001-Fix-the-missing-definitions-build-errors-warnings-on-some-systems.patch
 create mode 100644 package/umtprd/0002-Fix-the-pthread-missing-definition-build-error-on-some-systems.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com