toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / openpgm / 0003-Rework-headers-includes-to-fix-build-with-musl-libc.patch
blob4d700fb4d6875d4a096983bceeaa2093ab79ff23
1 From 01128a2d8ad3288e8b96a908888049f186d156ee Mon Sep 17 00:00:00 2001
2 From: Bernd Kuhls <bernd.kuhls@t-online.de>
3 Date: Sat, 21 May 2016 19:44:48 +0200
4 Subject: [PATCH 1/1] Rework headers includes to fix build with musl libc
6 Downloaded patch from
7 http://git.alpinelinux.org/cgit/aports/plain/main/openpgm/openpgm-fix-includes.patch
8 and adjusted paths by prefixing with "openpgm/pgm/"
10 A build log with the compile error can be found here:
11 http://autobuild.buildroot.net/results/854/854554827ead82f29b293ddceced6eb7fbfeec27/build-end.log
13 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
14 (Patch sent upstream: https://github.com/steve-o/openpgm/pull/44)
15 ---
16 openpgm/pgm/include/impl/security.h | 3 ++-
17 openpgm/pgm/include/pgm/types.h | 1 +
18 2 files changed, 3 insertions(+), 1 deletion(-)
20 diff --git a/openpgm/pgm/include/impl/security.h b/openpgm/pgm/include/impl/security.h
21 index c2b3e3d..896316f 100644
22 --- a/openpgm/pgm/include/impl/security.h
23 +++ b/openpgm/pgm/include/impl/security.h
24 @@ -33,7 +33,6 @@
25 #include <stdio.h>
26 #include <stdarg.h>
27 #include <sys/types.h>
28 -#include <sys/timeb.h>
29 #include <impl/i18n.h>
30 #include <impl/errno.h>
31 #include <impl/string.h>
32 @@ -41,6 +40,8 @@
33 PGM_BEGIN_DECLS
35 #ifdef HAVE_FTIME
36 +#include <sys/timeb.h>
38 static inline
39 errno_t
40 # if !defined( _WIN32 )
41 diff --git a/openpgm/pgm/include/pgm/types.h b/openpgm/pgm/include/pgm/types.h
42 index 4e41261..58731a3 100644
43 --- a/openpgm/pgm/include/pgm/types.h
44 +++ b/openpgm/pgm/include/pgm/types.h
45 @@ -27,6 +27,7 @@
47 #ifndef _MSC_VER
48 # include <sys/param.h>
49 +# include <sys/types.h>
50 #endif
51 #include <pgm/macros.h>
53 --
54 2.8.1