package/openpgm: Rework defines to fix build with musl libc
PATCH 1/1 package/openpgm: Rework defines to fix build with musl libc
Fixes
http://autobuild.buildroot.net/results/420/420367cc4640c893f48336d71fa04eaeff55c8e6/
Signed-off-by Bernd Kuhls <[email protected]>
--- ...ework-defines-to-fix-build-with-musl-libc.patch | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 package/openpgm/0003-Rework-defines-to-fix-build-with-musl-libc.patch
package/openpgm/0003-Rework-defines-to-fix-build-with-musl-libc.patch new file +55 -0
@@ -0,0 +1,55 @@ +From 01128a2d8ad3288e8b96a908888049f186d156ee Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls <[email protected]> +Date: Sat, 21 May 2016 19:44:48 +0200 +Subject: [PATCH 1/1] Rework defines to fix build with musl libc + +Downloaded patch from +http://git.alpinelinux.org/cgit/aports/plain/main/openpgm/openpgm-fix-includes.patch +and adjusted paths by prefixing with "openpgm/pgm/" + +A build log with the compile error can be found here: +http://autobuild.buildroot.net/results/854/854554827ead82f29b293ddceced6eb7fbfeec27/build-end.log + +Signed-off-by: Bernd Kuhls <[email protected]> +(Patch sent upstream: https://github.com/steve-o/openpgm/pull/44) +--- + openpgm/pgm/include/impl/security.h | 3 ++- + openpgm/pgm/include/pgm/types.h | 1 + + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/openpgm/pgm/include/impl/security.h b/openpgm/pgm/include/impl/security.h +index c2b3e3d..896316f 100644 +--- a/openpgm/pgm/include/impl/security.h ++++ b/openpgm/pgm/include/impl/security.h +@@ -33,7 +33,6 @@ + #include <stdio.h> + #include <stdarg.h> + #include <sys/types.h> +-#include <sys/timeb.h> + #include <impl/i18n.h> + #include <impl/errno.h> + #include <impl/string.h> +@@ -41,6 +40,8 @@ + PGM_BEGIN_DECLS + + #ifdef HAVE_FTIME ++#include <sys/timeb.h> ++ + static inline + errno_t + # if !defined( _WIN32 ) +diff --git a/openpgm/pgm/include/pgm/types.h b/openpgm/pgm/include/pgm/types.h +index 4e41261..58731a3 100644 +--- a/openpgm/pgm/include/pgm/types.h ++++ b/openpgm/pgm/include/pgm/types.h +@@ -27,6 +27,7 @@ + + #ifndef _MSC_VER + # include <sys/param.h> ++# include <sys/types.h> + #endif + #include <pgm/macros.h> + +-- +2.8.1 +
Signature · 1 line
2.8.1
PATCH 1/1 package/openpgm: Rework defines to fix build with musl libc
Hello,
Quoted 8 lines · Bernd Kuhls
Fixes
http://autobuild.buildroot.net/results/420/420367cc4640c893f48336d71fa04eaeff55c8e6/Signed-off-by Bernd Kuhls <[email protected]>--- ...ework-defines-to-fix-build-with-musl-libc.patch | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 package/openpgm/0003-Rework-defines-to-fix-build-with-musl-libc.patch
Your commit title and description says "Rework defines", but actually you're reworking "Headers includes", so I've fixed that up and applied to master. Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com