0003-Rework-headers-includes-to-fix-build-with-musl-libc.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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
  5. Downloaded patch from
  6. http://git.alpinelinux.org/cgit/aports/plain/main/openpgm/openpgm-fix-includes.patch
  7. and adjusted paths by prefixing with "openpgm/pgm/"
  8. A build log with the compile error can be found here:
  9. http://autobuild.buildroot.net/results/854/854554827ead82f29b293ddceced6eb7fbfeec27/build-end.log
  10. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  11. (Patch sent upstream: https://github.com/steve-o/openpgm/pull/44)
  12. ---
  13. openpgm/pgm/include/impl/security.h | 3 ++-
  14. openpgm/pgm/include/pgm/types.h | 1 +
  15. 2 files changed, 3 insertions(+), 1 deletion(-)
  16. diff --git a/openpgm/pgm/include/impl/security.h b/openpgm/pgm/include/impl/security.h
  17. index c2b3e3d..896316f 100644
  18. --- a/openpgm/pgm/include/impl/security.h
  19. +++ b/openpgm/pgm/include/impl/security.h
  20. @@ -33,7 +33,6 @@
  21. #include <stdio.h>
  22. #include <stdarg.h>
  23. #include <sys/types.h>
  24. -#include <sys/timeb.h>
  25. #include <impl/i18n.h>
  26. #include <impl/errno.h>
  27. #include <impl/string.h>
  28. @@ -41,6 +40,8 @@
  29. PGM_BEGIN_DECLS
  30. #ifdef HAVE_FTIME
  31. +#include <sys/timeb.h>
  32. +
  33. static inline
  34. errno_t
  35. # if !defined( _WIN32 )
  36. diff --git a/openpgm/pgm/include/pgm/types.h b/openpgm/pgm/include/pgm/types.h
  37. index 4e41261..58731a3 100644
  38. --- a/openpgm/pgm/include/pgm/types.h
  39. +++ b/openpgm/pgm/include/pgm/types.h
  40. @@ -27,6 +27,7 @@
  41. #ifndef _MSC_VER
  42. # include <sys/param.h>
  43. +# include <sys/types.h>
  44. #endif
  45. #include <pgm/macros.h>
  46. --
  47. 2.8.1