0002-fix-int-types.patch 751 B

123456789101112131415161718192021222324
  1. Standard integer types are uintXX_t not u_intXX_t
  2. This fixes the build with the musl C library.
  3. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  4. diff -durN dvblast-3.0.orig/dvblast.h dvblast-3.0/dvblast.h
  5. --- dvblast-3.0.orig/dvblast.h 2015-10-05 17:51:14.000000000 +0200
  6. +++ dvblast-3.0/dvblast.h 2015-10-30 16:29:25.586125193 +0100
  7. @@ -49,10 +49,10 @@
  8. * Raw udp packet structure with flexible-array payload
  9. *****************************************************************************/
  10. struct udpheader { // FAVOR_BSD hell ...
  11. - u_int16_t source;
  12. - u_int16_t dest;
  13. - u_int16_t len;
  14. - u_int16_t check;
  15. + uint16_t source;
  16. + uint16_t dest;
  17. + uint16_t len;
  18. + uint16_t check;
  19. };
  20. #if defined(__FreeBSD__) || defined(__APPLE__)