0001-fix-musl-build.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. fix musl build
  2. Fix the following musl build failure:
  3. receivedata.c: In function 'findSlice':
  4. receivedata.c:348:2: error: unknown type name 'ptrdiff_t'
  5. 348 | ptrdiff_t pos = slice - clst->slices;
  6. | ^~~~~~~~~
  7. receivedata.c:17:1: note: 'ptrdiff_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
  8. 16 | #include "fec.h"
  9. +++ |+#include <stddef.h>
  10. 17 |
  11. Fixes:
  12. - http://autobuild.buildroot.org/results/30208c6f175967fed6de690447a09e0c86547b24
  13. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  14. [Upstream status:
  15. https://udpcast.linux.lu/mailman3/hyperkitty/list/udpcast@udpcast.linux.lu/thread/4MBES2CPUSUNIZTC7NXCQYS2GAE4DQSG/]
  16. diff '--color=auto' -Nura udpcast-20211207.orig/receivedata.c udpcast-20211207/receivedata.c
  17. --- udpcast-20211207.orig/receivedata.c 2022-08-13 21:48:06.226588614 +0200
  18. +++ udpcast-20211207/receivedata.c 2022-08-13 21:48:40.242992238 +0200
  19. @@ -1,6 +1,7 @@
  20. #include <assert.h>
  21. #include <sys/types.h>
  22. #include <unistd.h>
  23. +#include <stddef.h>
  24. #include <stdlib.h>
  25. #include <sys/time.h>
  26. #include <errno.h>