[Buildroot] [git commit] package/dvblast: fix musl build

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Oct 31 15:02:24 UTC 2015


commit: http://git.buildroot.net/buildroot/commit/?id=922b67d89c49f7c7778a7c95e7ef398c408fb507
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

In order to make dvblast build with the musl C library, use the
standard uintXX_t integer types instead of u_intXX_t.

Fixes:
    http://autobuild.buildroot.org/results/a43/a434372d84544116e7bb4a88c0ee437ae0578007/
    http://autobuild.buildroot.org/results/167/167efb284be47ae3e90fe7a8e6316e757b59cd3e/
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Cc: Julian Scheel <julian at jusst.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/dvblast/0002-fix-int-types.patch |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/package/dvblast/0002-fix-int-types.patch b/package/dvblast/0002-fix-int-types.patch
new file mode 100644
index 0000000..d741cc6
--- /dev/null
+++ b/package/dvblast/0002-fix-int-types.patch
@@ -0,0 +1,24 @@
+Standard integer types are uintXX_t not u_intXX_t
+
+This fixes the build with the musl C library.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
+
+diff -durN dvblast-3.0.orig/dvblast.h dvblast-3.0/dvblast.h
+--- dvblast-3.0.orig/dvblast.h	2015-10-05 17:51:14.000000000 +0200
++++ dvblast-3.0/dvblast.h	2015-10-30 16:29:25.586125193 +0100
+@@ -49,10 +49,10 @@
+  * Raw udp packet structure with flexible-array payload
+  *****************************************************************************/
+ struct udpheader { // FAVOR_BSD hell ...
+-  u_int16_t source;
+-  u_int16_t dest;
+-  u_int16_t len;
+-  u_int16_t check;
++  uint16_t source;
++  uint16_t dest;
++  uint16_t len;
++  uint16_t check;
+ };
+ 
+ #if defined(__FreeBSD__) || defined(__APPLE__)


More information about the buildroot mailing list